mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-04 04:40:50 +02:00
subcommand_load(): fix issue in printing load hints
empty lines we get from searching are now ignored
This commit is contained 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}; "
|
||||
|
||||
Reference in New Issue
Block a user