Helper script updates

This commit is contained in:
Scott Lahteine
2019-06-26 03:03:39 -05:00
parent b961251899
commit decfe3424f
4 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
#!/usr/bin/env bash
#
# mfadd
# mfadd (user|ref) [copyname]
#
# Add a remote and fetch it. Optionally copy a branch.
#
# Example: mfadd myfork:patch-1 copy_of_patch-1
#
[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` (user | ref copyname)" 1>&2 ; exit 1; }
[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` (user|ref) [copyname]" 1>&2 ; exit 1; }
# If a colon is included, split the parts
if [[ $1 =~ ":" ]]; then