From 81baaf697611971857849c2c3152e6ea78aa1daa Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Fri, 14 Apr 2017 17:30:36 +0300 Subject: [PATCH] be even more precise --- plugins/postfix/postfix_stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/postfix/postfix_stats b/plugins/postfix/postfix_stats index 7f9eb007..b5509f4e 100755 --- a/plugins/postfix/postfix_stats +++ b/plugins/postfix/postfix_stats @@ -66,7 +66,7 @@ GPLv2 #set -xv MAIL_LOG="${logfiles:-/var/log/mail.log /var/log/mail.log.1}" -GREP_HOSTNAME=$(echo $0 | sed -r 's/^.+postfix_stats_?//') +GREP_HOSTNAME=$(basename "$0" | sed -r 's/postfix_stats_?//') # shellcheck disable=SC2154 PFLOGSUMM="${pflogsum}"