From d33fcf26c93d6d49dfbc1a7e124304791466dac4 Mon Sep 17 00:00:00 2001 From: app-harry Date: Sun, 27 Oct 2024 00:04:58 +0800 Subject: [PATCH] update deploy.sh --- deploy.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 71e67d2..c57d745 100755 --- a/deploy.sh +++ b/deploy.sh @@ -23,10 +23,7 @@ build() { setup_gh() { # Delete the branch if it exists, and create a new one - if git branch --list "$PAGES_BRANCH" > /dev/null; then - echo "Branch '$PAGES_BRANCH' exists. Deleting and recreating it..." - git branch -D "$PAGES_BRANCH" - fi + git branch -D "$PAGES_BRANCH" # Create and switch to the new branch git checkout -b "$PAGES_BRANCH"