Browse Source

🐛 Fix mffp usage

vanilla_fb_2.0.x
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
27d2471ea3
  1. 4
      buildroot/share/git/mffp
  2. 4
      buildroot/share/git/mfnew

4
buildroot/share/git/mffp

@ -6,7 +6,7 @@
# By default: `git push upstream HEAD:bugfix-2.0.x` # By default: `git push upstream HEAD:bugfix-2.0.x`
# #
usage() { echo "usage: `basename $0` [1|2] [ref]" 1>&2 } usage() { echo "usage: `basename $0` [1|2] [ref]" 1>&2 ; }
[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage ; exit 1; } [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage ; exit 1; }
@ -17,7 +17,7 @@ elif [[ $# == 1 ]]; then
MFINFO=$(mfinfo) || exit 1 MFINFO=$(mfinfo) || exit 1
REF=${1:-HEAD} REF=${1:-HEAD}
else else
usage usage ; exit 1
fi fi
IFS=' ' read -a INFO <<< "$MFINFO" IFS=' ' read -a INFO <<< "$MFINFO"

4
buildroot/share/git/mfnew

@ -5,9 +5,7 @@
# Create a new branch from the default target with the given name # Create a new branch from the default target with the given name
# #
usage() { usage() { echo "usage: `basename $0` [1|2] [name]" 1>&2 ; }
echo "usage: `basename $0` [1|2] [name]" 1>&2
}
[[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; } [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage; exit 1; }

Loading…
Cancel
Save