Merge branch '215-output-of-module-file-is-missing-in-error-message-of-sub-cmd-unload-if-module-doesn-t-exist-any' into 'master'

Resolve "output of module(-file) is missing in error message of sub-cmd unload if module doesn't exist any more"

Closes #215

See merge request Pmodules/src!192
This commit is contained in:
2023-07-03 17:08:30 +00:00
+1 -1
View File
@@ -855,7 +855,7 @@ subcommand_unload() {
continue
fi
local interp
is_modulefile interp "${lmfile}" || die_not_a_modulefile "${m}"
is_modulefile interp "${lmfile}" || die_not_a_modulefile "${lmfile}"
if [[ "${interp}" == 'lmod' ]]; then
current_modulefile="${current_modulefile/${moduledir}\/}"
modulecmd="${lmod_cmd}"