From 3ea85cffd528865ca4287974042d9092790d6664 Mon Sep 17 00:00:00 2001 From: James Ives Date: Mon, 4 Mar 2019 10:54:21 -0500 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e36fb44e..c28953ae 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,7 +45,7 @@ REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && # Checks to see if the remote exists prior to deploying. # If the branch doesn't exist it gets created here as an orphan. -if [ `git ls-remote --heads $REPOSITORY_PATH $BRANCH | wc -l` = false ] +if [ "$(git ls-remote --heads "$REPOSITORY_PATH" "$BRANCH" | wc -l)" -eq 0 ]; then echo "Creating remote branch ${BRANCH} as it doesn't exist..." git checkout "${BASE_BRANCH:-master}" && \