fix(installer): check return command value
This commit is contained in:
parent
08f3d2f88f
commit
ca1bc4bd06
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ local function install(pkg)
|
||||||
command = "go",
|
command = "go",
|
||||||
args = { "install", url },
|
args = { "install", url },
|
||||||
on_exit = function(_, ret_val)
|
on_exit = function(_, ret_val)
|
||||||
if ret_val ~= nil then
|
if ret_val ~= 0 then
|
||||||
print("command exited with code " .. ret_val)
|
print("command exited with code " .. ret_val)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue