From 2679a71a79f81ca377f7e9e81255358ce47b5b76 Mon Sep 17 00:00:00 2001 From: John Locke Date: Thu, 19 Nov 2015 12:00:43 -0800 Subject: [PATCH] Fix grep flag --- update_ssmtp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_ssmtp.sh b/update_ssmtp.sh index 28ea885..af2b44f 100644 --- a/update_ssmtp.sh +++ b/update_ssmtp.sh @@ -1,6 +1,6 @@ #!/bin/bash ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp' -grep -nc "$ConfiguredComment" /etc/ssmtp.conf && { +grep -qc "$ConfiguredComment" /etc/ssmtp.conf && { echo "smtp configured." exit }