cowgill / spamhaus

A shell script that grabs the latest Spamhaus DROP List and adds it to iptables.
50 stars 21 forks source link

Silence stderr output when testing if chain exists #6

Open ddarbyson opened 5 years ago

ddarbyson commented 5 years ago

When testing iptables if the chain exists, the output to stderr is not necessary if the test fails... if wrapping this program in a cron silencer like cronic https://github.com/justincase/cronic this causes false positives.