Fix grep flag

This commit is contained in:
John Locke 2015-11-19 12:00:43 -08:00
parent a3409267f4
commit 5cbc5e6f7f

View File

@ -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
}