Skip to content

Commit

Permalink
Reject unknown switches in release script
Browse files Browse the repository at this point in the history
Instead of treating unknown arguments starting with a dash as branch
names, reject them.
  • Loading branch information
mina86 committed Feb 26, 2020
1 parent d907f29 commit fedd214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/cut-a-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ while [ $# -gt 0 ]; do
?:-f|?:--force) noclobber=false ;;
?:-n|?:--dry-run) dry="echo >" ;;
?:-p?*) patchlevel=${1#-?} ;;
0:?*)
0:[!-]*)
master=$1
experimental=HEAD
n=1
;;
1:?*)
1:[!-]*)
experimental=$1
n=2
;;
Expand Down

0 comments on commit fedd214

Please sign in to comment.