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:
parent
104536cd21
commit
5b8c072db3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user