From 19c0b6533102b396a615f3520139878760106e73 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 17 Nov 2023 16:00:20 +0100 Subject: [PATCH] modulecmd: bugfix in reading module config Missing redirect added --- Pmodules/modulecmd.bash.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 2c16bd0..4e9b437 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -311,7 +311,8 @@ get_module_config(){ local -r config_file="${modulefile%/*}/.config-${modulefile##*/}" local -r rel_stage_file="${modulefile%/*}/.release-${modulefile##*/}" if [[ -r ${config_file} ]]; then - local -- yaml=$(${yq} -e '.') + local -- yaml=$(${yq} -e '.' < "${config_file}") + debug "yaml: ${yaml}" local -- key='' for key in ${!ref_cfg[@]}; do case "${key,,}" in