summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-27 20:40:53 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-27 20:40:53 -0400
commitfa10f46235a57a8f2084578c001f6293e58bce49 (patch)
treeeec3acbccaf67dcc3e3ac7e28faf76485c9b5a50 /src
parent0c445419dde3f421e1db1a63ba8395e5f81369e4 (diff)
libreblacklist: support comments
Diffstat (limited to 'src')
-rwxr-xr-xsrc/lib/libreblacklist2
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