refactor(logging): strips out comments in func print_cfg

This strips out any comments in crowsnest.conf

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel 2022-06-12 16:41:35 +02:00
parent 104536cd21
commit 5b8c072db3
No known key found for this signature in database
GPG Key ID: F465B83ACBA45639

View File

@ -82,9 +82,10 @@ function print_cfg {
local prefix
prefix="\t\t"
log_msg "INFO: Print Configfile: '${CROWSNEST_CFG}'"
(sed '/^#.*/d;/./,$!d' | cut -d'#' -f1) < "${CROWSNEST_CFG}" | \
while read -r line; do
log_msg "${prefix}${line}"
done < "${CROWSNEST_CFG}"
done
}
function print_cams {