Sort command line flag case statement.

pull/113/head
Felddy 4 years ago
parent 482a370679
commit 466ef0cce5
No known key found for this signature in database
GPG Key ID: AFD7E112AF75260E
  1. 8
      setup-env

@ -37,10 +37,6 @@ PARAMS=""
# Parse command line arguments # Parse command line arguments
while (( "$#" )); do while (( "$#" )); do
case "$1" in case "$1" in
-i|--install-hooks)
INSTALL_HOOKS=1
shift
;;
-f|--force) -f|--force)
FORCE=1 FORCE=1
shift shift
@ -49,6 +45,10 @@ while (( "$#" )); do
echo "${USAGE}" echo "${USAGE}"
exit 0 exit 0
;; ;;
-i|--install-hooks)
INSTALL_HOOKS=1
shift
;;
-*) # unsupported flags -*) # unsupported flags
echo "Error: Unsupported flag $1" >&2 echo "Error: Unsupported flag $1" >&2
exit 1 exit 1

Loading…
Cancel
Save