mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
output modulefile in err-msg of sub-cmd unload on error
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user