fix(docker): remove overriding config options by empty env vars

This commit is contained in:
fiftin 2024-06-18 18:14:12 +05:00
parent 91601eb0eb
commit 349325be70
No known key found for this signature in database
GPG Key ID: 044381366A5D4731

View File

@ -24,7 +24,10 @@ file_env() {
val="$(cat "${fileVar}")"
fi
export "${1}"="$val"
if [ -n "${val:-}" ]; then
export "${1}"="$val"
fi
unset "${1}_FILE"
}