Enhance github helper scripts (#9887)

This commit is contained in:
Scott Lahteine 2018-03-01 20:40:53 -06:00 committed by GitHub
parent cd4c35c543
commit 63b13588a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 34 additions and 21 deletions

View file

@ -9,7 +9,7 @@
# any permanent changes to 'master'.
#
[[ $# < 2 ]] || { echo "Usage: `basename $0` [branch]" 1>&2 ; exit 1; }
[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "Usage: `basename $0` [branch]" 1>&2 ; exit 1; }
MFINFO=$(mfinfo "$@") || exit 1
IFS=' ' read -a INFO <<< "$MFINFO"