diff --git a/script/ghpr b/script/ghpr index b919912..07d5fb0 100755 --- a/script/ghpr +++ b/script/ghpr @@ -4,6 +4,12 @@ export GH_NO_UPDATE_NOTIFIER=1 +currentbranch="$(git bn)" +if [ "$currentbranch" = "staging" ] || [ "$currentbranch" = "master" ]; then + echo "Are you sure? Currently on branch '$currentbranch'" + exit 1 +fi + output=$(gh pr view -w 2>&1) exitcode=$?