1
0
Fork 0

bin: Support old bash in git-branch-prune

This commit is contained in:
Jeremy Kaplan 2020-10-14 10:51:25 -07:00
commit 586a57b761

View file

@ -1,6 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export USAGE='<remote> export USAGE='<remote> [-f]
Flags:
-f, --force Prune branches without confirmation
' '
# This is the recommended pattern from `man git-sh-setup`. # This is the recommended pattern from `man git-sh-setup`.
@ -26,14 +29,13 @@ while [[ $# -gt 0 ]]; do
;; ;;
esac esac
done done
set -- "${POSITIONAL[@]}"
case "$#" in case "${#POSITIONAL[@]}" in
0) 0)
remote='origin' remote='origin'
;; ;;
1) 1)
remote="$1" remote="${POSITIONAL[0]}"
;; ;;
*) usage ;; *) usage ;;
esac esac