update deploy.sh

This commit is contained in:
app-harry 2024-10-27 20:56:50 +08:00
parent 0e9122c1cc
commit 19caf1ac5b

View File

@ -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"