From 8c6f694645b5a91b5fd84924c5c74b1bb3fb2b22 Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Sun, 16 Aug 2015 21:11:41 +0200 Subject: [PATCH] Replaced suspicious test --- tools/build-macos-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build-macos-script.sh b/tools/build-macos-script.sh index da91c0a20..ca3eec0d1 100755 --- a/tools/build-macos-script.sh +++ b/tools/build-macos-script.sh @@ -15,7 +15,7 @@ git remote set-url origin "https://${GH_TOKEN}@github.com/WagicProject/wagic.git ## Delete remote Travis-Mac branch (if any) export REMOTE=$(git branch -r | grep "origin/$TRAVIS_MAC_BRANCH") -if [ test -n "$REMOTE" ]; then +if [ "$REMOTE" = "origin/$TRAVIS_MAC_BRANCH" ]; then echo "Removing old $TRAVIS_MAC_BRANCH branch" # Delete remote branch git branch -r -D "origin/$TRAVIS_MAC_BRANCH"