3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-25 17:49:31 +01:00

Merge pull request #40 from dtolnay/minor

Fix "[: ==: unary operator expected"
This commit is contained in:
David Tolnay 2022-10-25 12:40:34 -07:00 committed by GitHub
commit 55c7845fad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ for rev in `releases` stable beta nightly; do
git commit --quiet --message "toolchain: $rev"
git checkout --quiet -b $rev
push+=("$rev:refs/heads/$rev")
if [ ${minor[${rev%.*}]} == $rev ]; then
if [ "${minor[${rev%.*}]}" == $rev ]; then
push+=("$rev:refs/heads/${rev%.*}")
fi
done