Commit fe1ab6d3 authored by gsell's avatar gsell

bugfix: broken sub-cmd unload fixed

parent 9aa3fb04
...@@ -594,11 +594,14 @@ subcommand_unload() { ...@@ -594,11 +594,14 @@ subcommand_unload() {
for arg in "${args[@]}"; do for arg in "${args[@]}"; do
local output=$("${modulecmd}" "${Shell}" 'unload' "${arg}") local output=$("${modulecmd}" "${Shell}" 'unload' "${arg}")
eval "${output}" eval "${output}"
if [[ "${Shell}" == "bash" ]]; then case ${Shell} in
sh | bash | zsh )
echo "${output}" echo "${output}"
else ;;
* )
"${modulecmd}" "${Shell}" 'unload' "${arg}" "${modulecmd}" "${Shell}" 'unload' "${arg}"
fi ;;
esac
done done
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment