From 6d12a2d54c20fabe07d23d4b4a6e3afe77151f8a Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Wed, 15 Apr 2020 14:41:42 +0200 Subject: [PATCH] Fix syntax error update-ngxblocker REF: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/commit/22c2a61bfe97d78ee56a839046a1d39010b5a1f3 --- update-ngxblocker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-ngxblocker b/update-ngxblocker index 10f04266e..85c3c1635 100755 --- a/update-ngxblocker +++ b/update-ngxblocker @@ -265,7 +265,7 @@ send_email() { # email report (mailx + ssmtp are enough to send emails) local mail_path=$(find_binary mail) - if [ -n "$mail_path") ]; then + if [ -n "$(mail_path)" ]; then print_message "Emailing report to: ${BOLDWHITE}$EMAIL${RESET}\n\n"; # remove ansi colour codes