fix OR conditions in find_vhosts(), fixes, #313

just "parenthesize" conditions
This commit is contained in:
danieli 2019-09-10 11:19:55 +02:00
parent 0264b3828f
commit bc2765a472

View file

@ -98,7 +98,7 @@ check_config() {
find_vhosts() {
local ans=
FILE_LIST=$(find $VHOST_DIR -type f -or -type l -name "*.$VHOST_EXT")
FILE_LIST=$(find $VHOST_DIR \( -type f -or -type l \) -name "*.$VHOST_EXT")
if [ -z "$FILE_LIST" ]; then
find $VHOST_DIR -type f