diff --git a/deploy.sh b/deploy.sh index 67cc6b0..8a4a267 100755 --- a/deploy.sh +++ b/deploy.sh @@ -26,7 +26,7 @@ fi currentbranch="$(git branch --format '%(refname:short)')" # If we are not on target branch, switch and run again -if test "$currentbranch" -ne "$branch"; then +if test "$currentbranch" '!=' "$branch"; then exec /bin/sh -eu "git checkout $branch && exec $0" fi