mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-23 00:50: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
|
# 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…
Reference in a new issue