Fixed mistake with getopts(1) in web-add.sh

This commit is contained in:
Patrick Marchand 2018-12-13 13:21:13 -05:00
parent c135807010
commit 21f5f011da

View file

@ -1000,12 +1000,12 @@ op_checkvhosts() {
ln_vhosts_dir="$(sed 's/available/enabled/' <<< "$VHOST_PATH")" ln_vhosts_dir="$(sed 's/available/enabled/' <<< "$VHOST_PATH")"
non_ln_vhosts="$(find "$ln_vhosts_dir"/* ! -type l)" non_ln_vhosts="$(find "$ln_vhosts_dir"/* ! -type l)"
while getopt f opt; do while getopts f opt; do
case "$opt" in case "$opt" in
f) f)
apply=1 apply=1
;; ;;
*) ?)
usage usage
exit 1 exit 1
;; ;;