mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-02 18:50:13 +00:00
Merge pull request #314 from udanieli/fix-find_vhosts-filter
fix OR conditions in find_vhosts(), fixes, #313
This commit is contained in:
commit
b9398a09a0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue