Skip to content

Commit

Permalink
Get the fix right ...
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed May 6, 2024
1 parent dff0fff commit fdfa124
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions l3build-aux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ function runcmd(cmd,dir,vars)
dir = abspath(dir)
vars = vars or {}
-- Allow for local texmf files
local env = os_concat
local env
if checkformat ~= "context" then
env = os_setenv .. " TEXMFCNF=." .. os_pathsep .. os_concat
env = os_setenv .. " TEXMFCNF=." .. os_pathsep
end
local envpaths = "." .. localtexmf() .. os_pathsep
.. abspath(localdir) .. os_pathsep
Expand All @@ -201,7 +201,9 @@ function runcmd(cmd,dir,vars)
envpaths = gsub(envpaths,'"','')
end
for _,var in pairs(vars) do
env = env .. os_setenv .. " " .. var .. "=" .. envpaths .. os_concat
env = (env and (env .. os_concat) or "")
.. os_setenv .. " " .. var .. "=" .. envpaths
end
return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. cmd)
return run(dir,set_epoch_cmd(epoch, forcedocepoch)
.. (env and (env .. os_concat) or "") .. cmd)
end

0 comments on commit fdfa124

Please sign in to comment.