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 EOF
) )
while getopts "h:u:nv" arg; do while getopts "h:mnu:v" arg; do
case $arg in case $arg in
h) h)
SERVER=$OPTARG SERVER=$OPTARG
;; ;;
v) m)
VERBOSITY=$((VERBOSITY+1)) MAINTENANCE=1
;; ;;
n) n)
DRY=1 DRY=1
@ -60,8 +60,8 @@ while getopts "h:u:nv" arg; do
u) u)
RUN_USER=$OPTARG RUN_USER=$OPTARG
;; ;;
m) v)
MAINTENANCE=1 VERBOSITY=$((VERBOSITY+1))
;; ;;
esac esac
done done