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