modulecmd.bash.in: is_group(): upvar with $1 must be declared local

This commit is contained in:
2021-04-28 00:40:41 +02:00
parent 05aa3d0e42
commit cc7b4b10cd
+1
View File
@@ -431,6 +431,7 @@ subcommand_load() {
# hierarchical depth of a group must always be the same.
#
is_group () {
local "$1"
find_an_overlay_providing_group () {
local "$1"
local -r group="$2/${PMODULES_MODULEFILES_DIR}"