From 4c4d530327fcd920f4647152671437e95969dc83 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 25 May 2020 10:33:52 +0200 Subject: [PATCH] subcommand_load(): fix issue in printing load hints empty lines we get from searching are now ignored --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 684759c..61e2290 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -394,6 +394,7 @@ subcommand_load() { local output='' local release='' while read -a line; do + [[ -z ${line} ]] && continue release=${line[1]} if [[ ! ":${UsedReleases}:" =~ "${release}" ]]; then output+="module use ${release}; "