add missing -m flag, order things
This commit is contained in:
parent
e139307f61
commit
a10b911720
10
boxctl.sh
10
boxctl.sh
@ -46,13 +46,13 @@ mv /etc/packages.tmp /etc/packages
|
||||
EOF
|
||||
)
|
||||
|
||||
while getopts "h:u:nv" arg; do
|
||||
while getopts "h:mnu:v" arg; do
|
||||
case $arg in
|
||||
h)
|
||||
SERVER=$OPTARG
|
||||
;;
|
||||
v)
|
||||
VERBOSITY=$((VERBOSITY+1))
|
||||
m)
|
||||
MAINTENANCE=1
|
||||
;;
|
||||
n)
|
||||
DRY=1
|
||||
@ -60,8 +60,8 @@ while getopts "h:u:nv" arg; do
|
||||
u)
|
||||
RUN_USER=$OPTARG
|
||||
;;
|
||||
m)
|
||||
MAINTENANCE=1
|
||||
v)
|
||||
VERBOSITY=$((VERBOSITY+1))
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user