From 8ce85636d98e517576e2250116dc60e44ca638a7 Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Sun, 16 Aug 2015 20:52:10 +0200 Subject: [PATCH] More debug --- tools/build-macos-script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build-macos-script.sh b/tools/build-macos-script.sh index a71a96af2..da91c0a20 100755 --- a/tools/build-macos-script.sh +++ b/tools/build-macos-script.sh @@ -15,12 +15,14 @@ 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 [ test -n "$REMOTE" ]; then echo "Removing old $TRAVIS_MAC_BRANCH branch" # Delete remote branch git branch -r -D "origin/$TRAVIS_MAC_BRANCH" # Push (delete) remote branch on temote server (e.g. github) git push origin --delete "$TRAVIS_MAC_BRANCH" +else + echo "No $TRAVIS_MAC_BRANCH to remove" fi ## Create a new branch