mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 08:30:48 +00:00
Sort command line flag case statement.
This commit is contained in:
parent
482a370679
commit
466ef0cce5
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue