From 39d0dce90596bd0216b73c05371dab764cdfe418 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 21 Feb 2015 00:30:10 +0100 Subject: Fix silence Postfix version detection. --- postfix/postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 2aecd0d..57b2a28 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -47,7 +47,7 @@ pfver="$($postconf -d mail_version | cut -d= -f2 -s)" echo "$pfver" | grep -qP '2\.([2-9]|1\d)(\.\d)?$' \ || exit1 "ERROR: Bad postfix version - this script is known to work only for postfix 2.2 and later" pf23= -! echo "$pfver" | grep -P '2\.([3-9]|1\d)(\.\d)?$' || pf23=1 +! echo "$pfver" | grep -qP '2\.([3-9]|1\d)(\.\d)?$' || pf23=1 if ! [ -d "$realmsdir" ]; then warn "Realms directory \"$realmsdir\" does not exist." fi -- cgit v1.2.3