output modulefile in err-msg of sub-cmd unload on error

This commit is contained in:
2023-07-03 19:07:11 +02:00
parent ffb56f1f43
commit 5d14dd1fd2
+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}"