From 3cc1fa40466ea5cee134e6e780786f4fba7eef4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Thu, 21 Nov 2019 19:10:30 +0100 Subject: [PATCH] Fix non-POSIX conditional syntax Fixes #8416 --- tools/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 55768cd6e..3005e6542 100644 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -33,7 +33,7 @@ git config receive.fsck.zeroPaddedFilemode ignore # Update upstream remote to ohmyzsh org remote=$(git remote -v | awk '/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }') -if [[ -n "$remote" ]]; then +if [ -n "$remote" ]; then git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git" fi