浏览代码

Fix non-POSIX conditional syntax

Fixes #8416
Marc Cornellà 5 年之前
父节点
当前提交
3cc1fa4046
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/upgrade.sh

+ 1 - 1
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