diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-27 20:40:53 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-27 20:40:53 -0400 |
commit | fa10f46235a57a8f2084578c001f6293e58bce49 (patch) | |
tree | eec3acbccaf67dcc3e3ac7e28faf76485c9b5a50 | |
parent | 0c445419dde3f421e1db1a63ba8395e5f81369e4 (diff) |
libreblacklist: support comments
-rwxr-xr-x | src/lib/libreblacklist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libreblacklist b/src/lib/libreblacklist index 8aa33cc..eeb6b7f 100755 --- a/src/lib/libreblacklist +++ b/src/lib/libreblacklist @@ -25,7 +25,7 @@ # Usage: blacklist-normalize <$file # Normalizes the syntax of the blacklist on stdin. blacklist-normalize() { - sed -e 's/^[^:]*$/&::/' -e 's/^[^:]*:[^:]*$/&:/' + sed -e '/^#/d' -e 's/^[^:]*$/&::/' -e 's/^[^:]*:[^:]*$/&:/' } # Usage: blacklist-cat |