3cc1fa40466ea5cee134e6e780786f4fba7eef4f
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Fix non-POSIX conditional syntax
Fixes #8416
Diff
1diff --git a/tools/upgrade.sh b/tools/upgrade.sh
2index 55768cd6eee6e0486c9861a805f9e7f8ebb0ea6d..3005e6542c95321eea9433ae3b60b598b4b78905 100644
3--- a/tools/upgrade.sh
4+++ b/tools/upgrade.sh
5@@ -33,7 +33,7 @@ git config receive.fsck.zeroPaddedFilemode ignore
6
7 # Update upstream remote to ohmyzsh org
8 remote=$(git remote -v | awk '/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }')
9-if [[ -n "$remote" ]]; then
10+if [ -n "$remote" ]; then
11 git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
12 fi
13