Skip to content

Commit

Permalink
fix env pass in sh command. closes #3196
Browse files Browse the repository at this point in the history
  • Loading branch information
payonel committed Jun 9, 2022
1 parent 6aee1d6 commit c9530ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ if #args == 0 then
end
else
-- execute command.
return sh.execute(...)
return sh.execute(_ENV, ...)
end
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function shell.execute(command, env, ...)
if not sh then
return false, reason
end
local proc = process.load(sh, nil, nil, command)
local result = table.pack(process.internal.continue(proc, env, command, ...))
local proc = process.load(sh, env, nil, command)
local result = table.pack(process.internal.continue(proc, command, ...))
if result.n == 0 then return true end
return table.unpack(result, 1, result.n)
end
Expand Down

0 comments on commit c9530ae

Please sign in to comment.