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
1 changed files with 2 additions and 2 deletions

View File

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