update deploy.sh

This commit is contained in:
app-harry 2024-10-27 00:04:58 +08:00
parent 14132502af
commit d33fcf26c9

View File

@ -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
# Create and switch to the new branch
git checkout -b "$PAGES_BRANCH"