Skip to content

Commit

Permalink
Spelling of an internal var name
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Dec 10, 2017
1 parent a5f283b commit d387ef7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l3build.lua
Expand Up @@ -686,8 +686,8 @@ function tree(path, glob)
return lfs_attributes(file)["mode"] == "directory"
end
local dirs = {["."] = cropdots(path)}
for pattern, critereon in gmatch(cropdots(glob), "([^/]+)(/?)") do
local critereon = critereon == "/" and is_dir or always_true
for pattern, criterion in gmatch(cropdots(glob), "([^/]+)(/?)") do
local criterion = criterion == "/" and is_dir or always_true
function fill(path, dir, table)
for _, file in ipairs(filelist(dir, pattern)) do
local fullpath = path .. "/" .. file
Expand All @@ -697,7 +697,7 @@ function tree(path, glob)
or sub(file, 1, 1) ~= ".")
then
local fulldir = dir .. "/" .. file
if critereon(fulldir) then
if criterion(fulldir) then
table[fullpath] = fulldir
end
end
Expand Down

0 comments on commit d387ef7

Please sign in to comment.