From 19caf1ac5b721631339ccbb3145782e4a2776a0c Mon Sep 17 00:00:00 2001 From: app-harry Date: Sun, 27 Oct 2024 20:56:50 +0800 Subject: [PATCH] update deploy.sh --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index d60aa1d..2e0aa0e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -19,7 +19,7 @@ build() { } setup_gh() { - if git show-ref --verify --quiet "refs/heads/$PAGES_BRANCH"; then + if [[ -z $(git branch -av | grep "$PAGES_BRANCH") ]]; then git checkout -b "$PAGES_BRANCH" else git checkout "$PAGES_BRANCH"