fix: load variables from files the bash way

This commit is contained in:
aartoni 2025-05-12 23:19:07 +02:00
parent 0f542670f2
commit 15db792c14

View file

@ -263,7 +263,7 @@ function __environment_variables_from_files() {
if [[ -f "${file_path}" ]]; then if [[ -f "${file_path}" ]]; then
_log 'info' "Getting secret ${env_var} from ${file_path}" _log 'info' "Getting secret ${env_var} from ${file_path}"
export "${env_var}"="$(< "${file_path}")" printf -v "${env_var}" '%s' "$(< "${file_path}")"
else else
_log 'error' "File ${file_path} does not exist, defined in ${file_env_var}" _log 'error' "File ${file_path} does not exist, defined in ${file_env_var}"
fi fi