diff --git a/deploy.sh b/deploy.sh index b2adc3d..b80faca 100755 --- a/deploy.sh +++ b/deploy.sh @@ -3,6 +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 + echo "You are not on the 'master' branch. Not deploying." + exit +fi + if [ -d ./public ] ; then echo "-- Pruning current static files from ./${source}" rm -rf ./${source}