mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
Allow verbosity to be separate from -V
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
333ac21c2f
commit
fb55d63eaf
@ -72,6 +72,12 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
;;
|
||||
V*)
|
||||
option=${option#V}
|
||||
|
||||
if [ -z "$option" -a $# -gt 0 ]; then
|
||||
shift
|
||||
option=$1
|
||||
fi
|
||||
|
||||
if [ -n "$option" ]; then
|
||||
case $option in
|
||||
-1|0|1|2)
|
||||
@ -79,11 +85,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
option=
|
||||
;;
|
||||
*)
|
||||
startup_error "Invalid -V option ($option)"
|
||||
startup_error "Invalid -V option value ($option)"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
startup_error "Missing -V option"
|
||||
startup_error "Missing -V option value"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
@ -72,6 +72,12 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
;;
|
||||
V*)
|
||||
option=${option#V}
|
||||
|
||||
if [ -z "$option" -a $# -gt 0 ]; then
|
||||
shift
|
||||
option=$1
|
||||
fi
|
||||
|
||||
if [ -n "$option" ]; then
|
||||
case $option in
|
||||
-1|0|1|2)
|
||||
@ -79,11 +85,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
||||
option=
|
||||
;;
|
||||
*)
|
||||
startup_error "Invalid -V option ($option)"
|
||||
startup_error "Invalid -V option value ($option)"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
startup_error "Missing -V option"
|
||||
startup_error "Missing -V option value"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user