From 15798b49376395a30bc5940cbca1fc0365d3ace4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:06:13 +0100 Subject: [PATCH] Update helpers/fail2ban --- helpers/fail2ban | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/fail2ban b/helpers/fail2ban index 5266008aa5..ee6540d05e 100644 --- a/helpers/fail2ban +++ b/helpers/fail2ban @@ -102,7 +102,7 @@ ignoreregex = # if "$logpath" doesn't exist (as if using --use_template argument), assign # "$logpath" using the one in the previously generated fail2ban conf file - if [ -z "$logpath" ]; then + if [ -z "${logpath:-}" ]; then # the first sed deletes possibles spaces and the second one extract the path logpath=$(grep logpath "/etc/fail2ban/jail.d/$app.conf" | sed "s/ //g" | sed "s/logpath=//g") fi