lua: fix setup-hook *.lua matching
the setup-hook checks if a derivation contains lua files matching lua_path patterns. We use bash's globstar extension for that but `**.lua` doesn't return files in subfolders, it has to be `**/*.lua`. Adjust the pattern accordingly.
This commit is contained in:
parent
b8be016426
commit
c55b4dbcd2
|
@ -25,8 +25,8 @@ addToLuaSearchPathWithCustomDelimiter() {
|
||||||
# export only if the folder contains lua files
|
# export only if the folder contains lua files
|
||||||
shopt -s globstar
|
shopt -s globstar
|
||||||
|
|
||||||
|
local adjustedPattern="${absPattern/\?/\*\*\/\*}"
|
||||||
for _file in ${absPattern/\?/\*\*}; do
|
for _file in $adjustedPattern; do
|
||||||
export "${varName}=${!varName:+${!varName};}${absPattern}"
|
export "${varName}=${!varName:+${!varName};}${absPattern}"
|
||||||
shopt -u globstar
|
shopt -u globstar
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user