add check on file_parse to not include WEBPASSWORD= in the debug log

This commit is contained in:
Adam Warner 2017-03-15 18:59:41 +00:00
parent a6caa0e680
commit cfaf1ac67c
No known key found for this signature in database
GPG key ID: 7C062498C7FA6E49

View file

@ -84,7 +84,7 @@ header_write() {
file_parse() {
while read -r line; do
if [ ! -z "${line}" ]; then
[[ "${line}" =~ ^#.*$ || ! "${line}" ]] && continue
[[ "${line}" =~ ^#.*$ || ! "${line}" || "${line}" == "WEBPASSWORD="* ]] && continue
log_write "${line}"
fi
done < "${1}"