From 1d02f871dd13f82d8945e6f4a30c70cf2e510cbe Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sun, 2 Jan 2022 02:12:57 +0100 Subject: [PATCH] Fix missing "then" --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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