From ca1bc4bd06568586375d5f669fc3641c3a9ec9cc Mon Sep 17 00:00:00 2001 From: Smirnov Olexander Date: Mon, 30 May 2022 23:19:42 +0300 Subject: [PATCH] fix(installer): check return command value --- lua/gopher/installer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gopher/installer.lua b/lua/gopher/installer.lua index 66e8bce..d70fea6 100644 --- a/lua/gopher/installer.lua +++ b/lua/gopher/installer.lua @@ -11,7 +11,7 @@ local function install(pkg) command = "go", args = { "install", url }, on_exit = function(_, ret_val) - if ret_val ~= nil then + if ret_val ~= 0 then print("command exited with code " .. ret_val) return end