mirror of
https://github.com/pesde-pkg/scripts.git
synced 2024-12-12 07:00:35 +00:00
fix(rojo): pass directory to action from map
This commit is contained in:
parent
3a160c3e22
commit
5f068ba1b8
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ return function(packageDirectory: string?): boolean
|
||||||
-- file predicates, if present, we execute the action and report our status
|
-- file predicates, if present, we execute the action and report our status
|
||||||
for path, action in PATH_ACTION_MAP do
|
for path, action in PATH_ACTION_MAP do
|
||||||
if fs.isFile(`{packageDirectory}{PLATFORM_SEP}{path}`) then
|
if fs.isFile(`{packageDirectory}{PLATFORM_SEP}{path}`) then
|
||||||
local status = action()
|
local status = action(packageDirectory)
|
||||||
return if status ~= nil then status == 0 else true
|
return if status ~= nil then status == 0 else true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue