add check on file_parse to not include WEBPASSWORD= in the debug log
This commit is contained in:
parent
a6caa0e680
commit
cfaf1ac67c
|
@ -84,7 +84,7 @@ header_write() {
|
||||||
file_parse() {
|
file_parse() {
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
if [ ! -z "${line}" ]; then
|
if [ ! -z "${line}" ]; then
|
||||||
[[ "${line}" =~ ^#.*$ || ! "${line}" ]] && continue
|
[[ "${line}" =~ ^#.*$ || ! "${line}" || "${line}" == "WEBPASSWORD="* ]] && continue
|
||||||
log_write "${line}"
|
log_write "${line}"
|
||||||
fi
|
fi
|
||||||
done < "${1}"
|
done < "${1}"
|
||||||
|
|
Loading…
Reference in New Issue