From ebc772b7ed5ad62bdcce361544ea3f1119888e4a Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Fri, 7 Jan 2022 03:11:27 +0100 Subject: [PATCH] Add forgotten flag to deploy script I should maybe write tests for even that? --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 8a4a267..bf2e330 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 "git checkout $branch && exec $0" + exec /bin/sh -eu -c "git checkout $branch && exec $0" fi echo "Deploying branch $branch"