From 4ca4e8d937bc29cba417b704b09ba39e59489db4 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Tue, 6 Mar 2018 11:08:02 +0100 Subject: [PATCH] Implement suggested changes. --- plugins/mail/nullmailer_queue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/mail/nullmailer_queue b/plugins/mail/nullmailer_queue index d5a92867..47a0f1e2 100755 --- a/plugins/mail/nullmailer_queue +++ b/plugins/mail/nullmailer_queue @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh : <<=cut @@ -22,7 +22,6 @@ Example: [nullmailer_queue] user nullmail - env.queuedir /var/spool/nullmailer/queue env.errordir /var/spool/nullmailer/failed @@ -56,8 +55,8 @@ errordir=${errordir:-/var/spool/nullmailer/failed} case $1 in autoconf) - if hash nullmailer-queue &> /dev/null; then - [[ -r "$queuedir" ]] && echo yes || echo "no (queue dir not readable)" + if hash nullmailer-queue >/dev/null 2>/dev/null; then + [ -r "$queuedir" ] && echo yes || echo "no (queue dir not readable)" else echo "no (nullmailer not installed)" fi