Browse Source

🐛 Fix mffp usage

Scott Lahteine 3 years ago
parent
commit
3f6147fe85
2 changed files with 3 additions and 5 deletions
  1. 2
    2
      buildroot/share/git/mffp
  2. 1
    3
      buildroot/share/git/mfnew

+ 2
- 2
buildroot/share/git/mffp View File

6
 # By default: `git push upstream HEAD:bugfix-2.0.x`
6
 # By default: `git push upstream HEAD:bugfix-2.0.x`
7
 #
7
 #
8
 
8
 
9
-usage() { echo "usage: `basename $0` [1|2] [ref]" 1>&2 }
9
+usage() { echo "usage: `basename $0` [1|2] [ref]" 1>&2 ; }
10
 
10
 
11
 [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage ; exit 1; }
11
 [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { usage ; exit 1; }
12
 
12
 
17
   MFINFO=$(mfinfo) || exit 1
17
   MFINFO=$(mfinfo) || exit 1
18
   REF=${1:-HEAD}
18
   REF=${1:-HEAD}
19
 else
19
 else
20
-  usage
20
+  usage ; exit 1
21
 fi
21
 fi
22
 
22
 
23
 IFS=' ' read -a INFO <<< "$MFINFO"
23
 IFS=' ' read -a INFO <<< "$MFINFO"

+ 1
- 3
buildroot/share/git/mfnew View File

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

Loading…
Cancel
Save