From 4e0e117020336d891a5956f9a29d9f3b7163efd4 Mon Sep 17 00:00:00 2001 From: Elio <30508272+Elio-zhy@users.noreply.github.com> Date: Sat, 23 Apr 2022 19:09:24 +0800 Subject: fix(github): provide correct filename to gunzip (#625) --- lua/nvim-lsp-installer/core/managers/github/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/nvim-lsp-installer/core/managers/github/init.lua b/lua/nvim-lsp-installer/core/managers/github/init.lua index 32afc03c..cb19ad2e 100644 --- a/lua/nvim-lsp-installer/core/managers/github/init.lua +++ b/lua/nvim-lsp-installer/core/managers/github/init.lua @@ -78,11 +78,9 @@ end) ---@param opts {repo: string, out_file:string, asset_file: string|fun(release: string):string} function M.gunzip_release_file(opts) local release_file_source = M.release_file(opts) - std.download_file( - release_file_source.download_url, - ("%s.gz"):format(assert(opts.out_file, "out_file must be specified")) - ) - std.gunzip(opts.out_file) + local gzipped_file = ("%s.gz"):format(assert(opts.out_file, "out_file must be specified")) + std.download_file(release_file_source.download_url, gzipped_file) + std.gunzip(gzipped_file) return release_file_source end -- cgit v1.2.3-70-g09d2