Fixed mistake with getopts(1) in web-add.sh
This commit is contained in:
parent
c135807010
commit
21f5f011da
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue