From 21f5f011da345916f3d97f86f1f9949776b9aff7 Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Thu, 13 Dec 2018 13:21:13 -0500 Subject: [PATCH] Fixed mistake with getopts(1) in web-add.sh --- scripts/web-add.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 866341a..6f15551 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -1000,12 +1000,12 @@ op_checkvhosts() { ln_vhosts_dir="$(sed 's/available/enabled/' <<< "$VHOST_PATH")" non_ln_vhosts="$(find "$ln_vhosts_dir"/* ! -type l)" - while getopt f opt; do + while getopts f opt; do case "$opt" in f) apply=1 ;; - *) + ?) usage exit 1 ;;