mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-02 04:00:48 +02:00
modulecmd: unbound variables fixed in get_available_modules()
This commit is contained in:
@@ -783,6 +783,7 @@ subcommand_load() {
|
||||
output+="module use ${relstage}; "
|
||||
fi
|
||||
local group=${line[2]}
|
||||
#echo "group=${group}" 1>&2
|
||||
[[ "${group}" != 'none' ]] || continue
|
||||
if [[ ! ":${UsedGroups}:" == *:${group}:* ]] && \
|
||||
(( ${GroupDepths[${group}]} == 0 )); then
|
||||
@@ -1279,7 +1280,7 @@ get_available_modules() {
|
||||
long_module_name="${toks[-2]}/${toks[-1]}"
|
||||
fi
|
||||
[[ -n ${OverlayExcludes} \
|
||||
&& "${mod}" =~ ${OverlayExcludes} ]] && continue
|
||||
&& "${long_module_name}" =~ ${OverlayExcludes} ]] && continue
|
||||
local add='no'
|
||||
if [[ -n "${ol_name}" && "${ol_name,,}" != 'none' ]]; then
|
||||
# module is in an overlay
|
||||
|
||||
Reference in New Issue
Block a user