We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed4352 commit 3df7953Copy full SHA for 3df7953
1 file changed
build/docs-prep.sh
@@ -92,6 +92,12 @@ fi
92
print_success "Pulled latest changes from origin/gh-pages"
93
94
# Step 4: Create a new branch for the update
95
+print_info "Checking if branch ${NEW_BRANCH} exists and deleting it if it does…"
96
+if git show-ref --verify --quiet refs/heads/${NEW_BRANCH}; then
97
+ execute "git branch -D ${NEW_BRANCH}"
98
+else
99
+ print_info "Branch ${NEW_BRANCH} does not exist, proceeding with creation…"
100
+fi
101
print_info "Creating new branch ${NEW_BRANCH}…"
102
execute "git checkout -b ${NEW_BRANCH}"
103
0 commit comments