diff --git a/deploy.sh b/deploy.sh index b80faca..dc521b9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -3,9 +3,11 @@ source=public/ target=apps@spock.ariejan.net:/home/apps/sites/ariejan.net -if [ ! `git symbolic-ref HEAD | grep -q "refs/heads/master"` ] ; then + +git symbolic-ref HEAD | grep -q "refs/heads/master" +if [ $? != 0 ] ; then echo "You are not on the 'master' branch. Not deploying." - exit + exit 1 fi if [ -d ./public ] ; then