From a4398b8b24df57faddedf11a7ba16aa7781e6131 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 25 Oct 2022 12:37:36 -0700 Subject: [PATCH] Fix "[: ==: unary operator expected" --- scripts/update-revs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-revs.sh b/scripts/update-revs.sh index 9b4e128..7c1ea7c 100755 --- a/scripts/update-revs.sh +++ b/scripts/update-revs.sh @@ -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