Fix grep flag

This commit is contained in:
John Locke 2015-11-19 12:00:43 -08:00
parent 11b9c43044
commit 2679a71a79

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp' ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp'
grep -nc "$ConfiguredComment" /etc/ssmtp.conf && { grep -qc "$ConfiguredComment" /etc/ssmtp.conf && {
echo "smtp configured." echo "smtp configured."
exit exit
} }