From c6f6457804da1701808ff29c95310440772b4d9e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 17 Jul 2025 13:22:44 +0200 Subject: [PATCH] modulecmd: debug output removed --- Pmodules/modulecmd.bash.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index a59924c..ff13aa4 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -794,12 +794,9 @@ subcommand_load() { output='' local -- search_result="$(set +x; subcommand_search "${m}" -a --no-header 2>&1)" - echo "search: ---" 1>&2 - echo "${search_result}" 1>&2 - echo "search: ---" 1>&2 local -- relstage='' while read -r -a line; do - (( ${#line[@]} == 0 )) && continue + (( ${#line[@]} == 0 )) && continue relstage="${line[1]}" if [[ ! ":${UsedReleaseStages}:" == *:${relstage}:* ]]; then output+="module use ${relstage}; " @@ -807,7 +804,7 @@ subcommand_load() { local group=${line[2]} #echo "group=${group}" 1>&2 [[ "${group}" != 'none' ]] || continue - if [[ ! ":${UsedGroups}:" == *:${group}:* ]] && \ + if [[ ! ":${UsedGroups}:" == *:${group}:* ]] && \ (( ${GroupDepths[${group}]} == 0 )); then output+="module use ${group}; " fi