diff options
Diffstat (limited to 'sendmailadvanced.in')
-rwxr-xr-x | sendmailadvanced.in | 6 |
1 files 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) |