Enhance github helper scripts (#9888)

This commit is contained in:
Scott Lahteine
2018-03-01 20:41:01 -06:00
committed by GitHub
parent 6e08ddce6e
commit b9303b5577
10 changed files with 34 additions and 21 deletions

View File

@ -7,7 +7,7 @@
# - Force-push the branch to 'origin'
#
[[ $# < 3 ]] || { echo "Usage: `basename $0` [1|2] [branch]" 1>&2 ; exit 1; }
[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [1|2] [branch]" 1>&2 ; exit 1; }
MFINFO=$(mfinfo "$@") || exit 1
IFS=' ' read -a INFO <<< "$MFINFO"