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

Loading…
Cancel
Save