mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-26 17:43:09 +02:00
modulecmd: bugfix in handling overlay excludes
This commit is contained in:
@@ -1217,7 +1217,7 @@ get_available_modules() {
|
||||
# its sub-directories
|
||||
local mod='' # module_name/module_version
|
||||
while read -r mod; do
|
||||
[[ "${mod}" =~ ${OverlayExcludes} ]] && continue
|
||||
[[ -n ${OverlayExcludes} && "${mod}" =~ ${OverlayExcludes} ]] && continue
|
||||
local name="${mod%/*}"
|
||||
local add='no'
|
||||
if [[ -n "${ol}" && "${ol}" != 'none' ]]; then
|
||||
|
||||
Reference in New Issue
Block a user