From 1b57cab2c043297838c500376bce2e31dd3ff7a4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 4 Apr 2015 12:59:37 +0100 Subject: [PATCH] Invert logic --- src/freedombone-unignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedombone-unignore b/src/freedombone-unignore index d8248d95..c2dffbb6 100755 --- a/src/freedombone-unignore +++ b/src/freedombone-unignore @@ -77,7 +77,7 @@ fi # unignore an email address if [ $EMAIL_ADDRESS ]; then - if ! grep -q "Ignore rule for $EMAIL_ADDRESS" $PM; then + if grep -q "Ignore rule for $EMAIL_ADDRESS" $PM; then sed -i "/# Ignore rule for $EMAIL_ADDRESS/,/# End of ignore rule/d" $PM fi fi