mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-08-10 07:15:02 -06:00
Update git helper usage
This commit is contained in:
parent
31679640c0
commit
a484adcb30
5 changed files with 12 additions and 12 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
usage() {
|
||||
echo "usage: `basename $0` [1|2] [name]" 1>&2
|
||||
echo "usage: `basename $0` [1|2|3] [name]" 1>&2
|
||||
}
|
||||
|
||||
[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; }
|
||||
|
@ -19,12 +19,12 @@ BRANCH=pr_for_$TARG-$(date +"%G-%m-%d_%H.%M.%S")
|
|||
# BRANCH can be given as the last argument
|
||||
case "$#" in
|
||||
1 ) case "$1" in
|
||||
1|2) ;;
|
||||
1|2|3) ;;
|
||||
*) BRANCH=$1 ;;
|
||||
esac
|
||||
;;
|
||||
2 ) case "$1" in
|
||||
1|2) BRANCH=$2 ;;
|
||||
1|2|3) BRANCH=$2 ;;
|
||||
*) usage ; exit 1 ;;
|
||||
esac
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue