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 -