From 0214fc0c87b7009071536fe47502a4bd4a0e4c3b Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Fri, 7 Jan 2022 03:26:13 +0100 Subject: [PATCH] Do not forget to pull the new deploy script --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 7667d99..1a01ba9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -27,7 +27,7 @@ currentbranch="$(git rev-parse --abbrev-ref HEAD)" # 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 $branch" + exec /bin/sh -eu -c "git checkout $branch && git pull && exec $0 $branch" fi echo "Deploying branch $branch"