From a10b911720540f13cbd2e9740cd0be805864f381 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 24 Sep 2019 06:05:53 -0600 Subject: [PATCH] add missing -m flag, order things --- boxctl.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/boxctl.sh b/boxctl.sh index 136b764..f3acd62 100755 --- a/boxctl.sh +++ b/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