Skip to content

Commit

Permalink
fix: window checksum parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 20, 2024
1 parent 709ec9d commit 35baae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/blink/cmp/fuzzy/download/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ function files.get_checksum_for_file(path)
if out.code ~= 0 then return reject('Failed to calculate checksum of pre-built binary: ' .. out.stderr) end

local stdout = out.stdout or ''
if os == 'windows' then stdout = vim.split(stdout, '\n')[2] end
if os == 'windows' then stdout = vim.split(stdout, '\r\n')[2] end
-- We get an output like 'sha256sum filename' on most systems, so we grab just the checksum
return resolve(vim.split(out.stdout, ' ')[1])
return resolve(vim.split(stdout, ' ')[1])
end)
end)
end
Expand Down

0 comments on commit 35baae5

Please sign in to comment.