bugfix: broken sub-cmd unload fixed

This commit is contained in:
2020-01-15 13:01:41 +01:00
parent 9aa3fb045e
commit fe1ab6d35c
+6 -3
View File
@@ -594,11 +594,14 @@ subcommand_unload() {
for arg in "${args[@]}"; do
local output=$("${modulecmd}" "${Shell}" 'unload' "${arg}")
eval "${output}"
if [[ "${Shell}" == "bash" ]]; then
case ${Shell} in
sh | bash | zsh )
echo "${output}"
else
;;
* )
"${modulecmd}" "${Shell}" 'unload' "${arg}"
fi
;;
esac
done
}