Index: src/scripts/dpkg_no_scripts.sh |
diff --git a/src/scripts/dpkg_no_scripts.sh b/src/scripts/dpkg_no_scripts.sh |
index c2cc7c345ee01008a225feed7eb581a9389e1342..63c19429110e972664cbf9c22798e592bbbdb92b 100755 |
--- a/src/scripts/dpkg_no_scripts.sh |
+++ b/src/scripts/dpkg_no_scripts.sh |
@@ -53,7 +53,8 @@ is_whitelisted() { |
test -f "$whitelist" || return |
local checksum=$(md5sum "$1" | awk '{ print $1 }') |
- local count=$(grep -c "$checksum" "${whitelist}" || /bin/true) |
+ local count=$(sed -e "s/#.*$//" "${whitelist}" | grep -c "$checksum" \ |
+ || /bin/true) |
test $count -ne 0 |
} |