fix(installer): check return command value

This commit is contained in:
Smirnov Olexander 2022-05-30 23:19:42 +03:00
parent 08f3d2f88f
commit ca1bc4bd06

View file

@ -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