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