mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +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*)
|
V*)
|
||||||
option=${option#V}
|
option=${option#V}
|
||||||
|
|
||||||
|
if [ -z "$option" -a $# -gt 0 ]; then
|
||||||
|
shift
|
||||||
|
option=$1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$option" ]; then
|
if [ -n "$option" ]; then
|
||||||
case $option in
|
case $option in
|
||||||
-1|0|1|2)
|
-1|0|1|2)
|
||||||
@ -79,11 +85,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
startup_error "Invalid -V option ($option)"
|
startup_error "Invalid -V option value ($option)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
startup_error "Missing -V option"
|
startup_error "Missing -V option value"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -72,6 +72,12 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
;;
|
;;
|
||||||
V*)
|
V*)
|
||||||
option=${option#V}
|
option=${option#V}
|
||||||
|
|
||||||
|
if [ -z "$option" -a $# -gt 0 ]; then
|
||||||
|
shift
|
||||||
|
option=$1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$option" ]; then
|
if [ -n "$option" ]; then
|
||||||
case $option in
|
case $option in
|
||||||
-1|0|1|2)
|
-1|0|1|2)
|
||||||
@ -79,11 +85,11 @@ while [ $finished -eq 0 -a $# -gt 0 ]; do
|
|||||||
option=
|
option=
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
startup_error "Invalid -V option ($option)"
|
startup_error "Invalid -V option value ($option)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
startup_error "Missing -V option"
|
startup_error "Missing -V option value"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user