Skip to content

Commit

Permalink
Properly match "l3build" with/without ext
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Mar 9, 2018
1 parent 93bcda4 commit 83fa758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l3build-aux.lua
Expand Up @@ -58,7 +58,7 @@ function setepoch()
end
local function getscriptname()
if match(arg[0], "l3build(%.lua)$") then
if match(arg[0], "l3build$") or match(arg[0], "l3build%.lua$") then
return lookup("l3build.lua")
else
return arg[0]
Expand Down
2 changes: 1 addition & 1 deletion l3build.lua
Expand Up @@ -79,7 +79,7 @@ build_require("stdmain")
main = main or stdmain
-- Load configuration file if running as a script
if match(arg[0], "l3build(%.lua)$") then
if match(arg[0], "l3build$") or match(arg[0], "l3build%.lua$") then
-- Look for some configuration details
if fileexists("build.lua") then
dofile("build.lua")
Expand Down

0 comments on commit 83fa758

Please sign in to comment.