Fix "[: ==: unary operator expected"

This commit is contained in:
David Tolnay 2022-10-25 12:37:36 -07:00
parent 03a97c9690
commit a4398b8b24
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

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