mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-01 11:49:38 +02:00
modulecmd: bugfix: use of wrong shell in sub-cmd unload
This commit is contained in:
@@ -1011,7 +1011,7 @@ subcommand_unload() {
|
|||||||
is_modulefile modulecmd "${lmfile}" || die_not_a_modulefile "${arg}"
|
is_modulefile modulecmd "${lmfile}" || die_not_a_modulefile "${arg}"
|
||||||
|
|
||||||
local output=''
|
local output=''
|
||||||
output=$("${modulecmd}" "${Shell}" 'unload' "${arg}")
|
output=$("${modulecmd}" 'bash' 'unload' "${arg}")
|
||||||
if [[ -n "${output}" ]]; then
|
if [[ -n "${output}" ]]; then
|
||||||
eval "$(echo "${output}"|${sed} -e 's/;unalias [^;]*//g')"
|
eval "$(echo "${output}"|${sed} -e 's/;unalias [^;]*//g')"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user