aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/platform.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-11-05 21:40:41 +0100
committerGitHub <noreply@github.com>2022-11-05 20:40:41 +0000
commite14b20c3a39495ad93bfdd5b3e8076c692bd8c4a (patch)
tree049d22f7466e4424fb185079c8ebcedd6d95a3c6 /lua/mason-core/platform.lua
parentchore: update generated code (#628) (diff)
downloadmason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar.gz
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar.bz2
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar.lz
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar.xz
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.tar.zst
mason-e14b20c3a39495ad93bfdd5b3e8076c692bd8c4a.zip
fix(platform): also accept exit code 1 when checking ldd version (#630)
Fixes #629.
Diffstat (limited to 'lua/mason-core/platform.lua')
-rw-r--r--lua/mason-core/platform.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/platform.lua b/lua/mason-core/platform.lua
index fef9de00..31a1522e 100644
--- a/lua/mason-core/platform.lua
+++ b/lua/mason-core/platform.lua
@@ -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