From be5dcc74606542a051e20e7bff47301afa2dbf55 Mon Sep 17 00:00:00 2001 From: Graham Hall Date: Sat, 19 Apr 2025 10:00:00 -0400 Subject: [PATCH] 2025-04-19 --- scripts/git-commit-push.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/git-commit-push.sh b/scripts/git-commit-push.sh index d9686e8..01ccb4a 100755 --- a/scripts/git-commit-push.sh +++ b/scripts/git-commit-push.sh @@ -14,7 +14,7 @@ gum confirm "Push?" && git push origin $BRANCH CREATE_PR=$(gum confirm "Create PR?") -if [ "${!#}" == "-pr" && CREATE_PR == 0 ]; then +if [[ "${!#}" == "-pr" && CREATE_PR -eq 0 ]]; then REMOTE_BRANCHES=$(git branch -r | grep -v '\//' | sed 's/origin\///') if echo "$remote_branches" | grep -q "^beta$"; then @@ -29,4 +29,3 @@ if [ "${!#}" == "-pr" && CREATE_PR == 0 ]; then gh pr create --base PR_BASE fi -