Skip to content

Commit

Permalink
fix(health): support curl_path in a healthcheck (mistweaverco#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyskocilm authored and iamxiaojianzheng committed Oct 24, 2024
1 parent 9771c2a commit b9b6598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/kulala/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ local M = {}

M.check = function()
info("{kulala.nvim} version " .. GLOBALS.VERSION)
if FS.command_exists("curl") then
ok("{curl} found")
local curl = CONFIG.get().curl_path
if FS.command_exists(curl) then
ok(string.format("{%s} found", curl))
else
error("{curl} not found")
error(string.format("{%s} not found", curl))
end

start("Checking formatters")
Expand Down

0 comments on commit b9b6598

Please sign in to comment.