Check for master branch correctly.

This commit is contained in:
Ariejan de Vroom 2015-04-08 09:29:26 +02:00
parent b98292a774
commit d0540a1113

View File

@ -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