support comments in .cf files

This commit is contained in:
youtous 2020-05-06 19:26:47 +02:00
parent b6bc3bc073
commit d0f7257333
No known key found for this signature in database
GPG key ID: 592173AE8CD254A5
9 changed files with 27 additions and 19 deletions

View file

@ -13,6 +13,6 @@ errex() {
# Lock database even though we are only reading
(
flock -e 200
awk -F '|' '{ print $1; }' $DATABASE
(grep -v "^\s*$\|^\s*\#" "$DATABASE" || true) | awk -F '|' '{ print $1; }'
) 200<$DATABASE