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