...
 
Commits (2)
...@@ -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
} }
......