Fix non-POSIX conditional syntax

Fixes #8416
This commit is contained in:
Marc Cornellà 2019-11-21 19:10:30 +01:00 committed by GitHub
parent 1c98b9cc38
commit 3cc1fa4046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ git config receive.fsck.zeroPaddedFilemode ignore
# Update upstream remote to ohmyzsh org # Update upstream remote to ohmyzsh org
remote=$(git remote -v | awk '/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }') 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" git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
fi fi