diff --git a/deploy.sh b/deploy.sh index b4b4bb5..993f4e6 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" +if test "$currentbranch" -ne "$branch"; then exec /bin/sh -eu "git checkout $branch && exec $0" fi