From 801594b4d4dc882962b0fdca5146a61ce1aa7924 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 10 Oct 2019 10:40:03 +0200 Subject: sendmailadvanced.in: fix --hook=ALL --- sendmailadvanced.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sendmailadvanced.in b/sendmailadvanced.in index b3433b4..cbf90e2 100755 --- a/sendmailadvanced.in +++ b/sendmailadvanced.in @@ -108,14 +108,14 @@ while true; do case "$1" in -h|--hook) shift - if [ "x$1" = 'xALL' ]; then + if printf '%s\n' "$1" | grep -qixF 'ALL'; then for hook in $(find '#ETCDIR#/sendmailadvanced.hooks' -type f); do - if [ -x "#ETCDIR#/sendmailadvanced.hooks/${hook}" ]; then + if [ -x "${hook}" ]; then hooks[${#hooks[@]}]="${hook}" fi done else - hooks[${#hooks[@]}]="$1" + hooks[${#hooks[@]}]="#ETCDIR#/sendmailadvanced.hooks/$1" fi ;; --help) -- cgit v1.2.3-54-g00ecf