From 9b2cfe643768288fe5c1d20922662f0480af1dd5 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sun, 2 Jan 2022 02:12:09 +0100 Subject: [PATCH] Use older command for getting current branch name --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 5616402..b4b4bb5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -21,7 +21,9 @@ else branch=master fi -currentbranch="$(git branch --show-current)" +# TODO: When deployment is new enough, use the top command. +#currentbranch="$(git branch --show-current)" +currentbranch="$(git branch --format '%(refname:short)')" # If we are not on target branch, switch and run again if test "$currentbranch" -ne "$branch"