modulecmd: bugfix in sub-cmd use <group>

UsedOverlays must be used instead of OverlayInfo
This commit is contained in:
2022-06-30 17:52:26 +02:00
parent 6bfd3f5cf2
commit 5727cc9ef8
+1 -1
View File
@@ -1514,7 +1514,7 @@ subcommand_use() {
if [[ ! -v GroupDepths[${arg}] ]]; then
# this scan is required if a new group has been
# create inside an used overlay
scan_groups "${!OverlayInfo[@]}"
scan_groups "${UsedOverlays[@]}"
g_env_must_be_saved='yes'
fi
if [[ -n ${GroupDepths[${arg}]} ]]; then