mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-14 18:13:56 +01:00
Merge branch '337-modulecmd-use-of-wrong-shell-in-sub-cmd-unload' into 'master'
Resolve "modulecmd: use of wrong shell in sub-cmd unload" Closes #337 See merge request Pmodules/src!316 (cherry picked from commitc99e10d180)35081f59modulecmd: bugfix: use of wrong shell in sub-cmd unload Co-authored-by: gsell <achim.gsell@psi.ch>
This commit is contained in:
1 parent
bc011ac4fa
commit
bb4b93e16c
1 file changed
+1
-1
@@ -1011,7 +1011,7 @@ subcommand_unload() {
|
||||
is_modulefile modulecmd "${lmfile}" || die_not_a_modulefile "${arg}"
|
||||
|
||||
local output=''
|
||||
output=$("${modulecmd}" "${Shell}" 'unload' "${arg}")
|
||||
output=$("${modulecmd}" 'bash' 'unload' "${arg}")
|
||||
if [[ -n "${output}" ]]; then
|
||||
eval "$(echo "${output}"|${sed} -e 's/;unalias [^;]*//g')"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user