modulecmd: bugfix in unuse an overlay

- local declaration of overlay was missing
This commit is contained in:
2021-05-20 14:57:37 +02:00
parent 5c393560df
commit 0b87dc8ac4
+1
View File
@@ -1591,6 +1591,7 @@ subcommand_unuse() {
unset IFS
unuse() {
unuse_overlay() {
local overlay="$1"
if [[ -n ${LOADEDMODULES} ]]; then
if [[ $LOADEDMODULES == *:* ]] || [[ $LOADEDMODULES != Pmodules/* ]]; then
std::error "%s %s: %s" \