From bc2765a472148953cdd327c124bb67a0c77e284f Mon Sep 17 00:00:00 2001 From: danieli Date: Tue, 10 Sep 2019 11:19:55 +0200 Subject: [PATCH] fix OR conditions in find_vhosts(), fixes, #313 just "parenthesize" conditions --- setup-ngxblocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-ngxblocker b/setup-ngxblocker index e3232aaa7..420666d34 100755 --- a/setup-ngxblocker +++ b/setup-ngxblocker @@ -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