Skip to content

Commit

Permalink
fix(platform): also accept exit code 1 when checking ldd version (#630)
Browse files Browse the repository at this point in the history
Fixes #629.
  • Loading branch information
williamboman committed Nov 5, 2022
1 parent b91ccdc commit e14b20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mason-core/platform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ M.is_headless = #vim.api.nvim_list_uis() == 0
local function system(args)
if vim.fn.executable(args[1]) == 1 then
local ok, output = pcall(vim.fn.system, args)
if ok and vim.v.shell_error == 0 then
if ok and (vim.v.shell_error == 0 or vim.v.shell_error == 1) then
return true, output
end
return false, output
Expand Down

0 comments on commit e14b20c

Please sign in to comment.