add missing -m flag, order things

This commit is contained in:
Aaron Bieber 2019-09-24 06:05:53 -06:00
parent e139307f61
commit a10b911720
Signed by: qbit
GPG Key ID: 279160AB1BE1236B

View File

@ -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