diff options
| author | Elio <30508272+Elio-zhy@users.noreply.github.com> | 2022-04-23 19:09:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-23 13:09:24 +0200 |
| commit | 4e0e117020336d891a5956f9a29d9f3b7163efd4 (patch) | |
| tree | 30740aef89c9dd15e322d4f7c3e9dd595a61bf8c /lua | |
| parent | add deprecation notice to old installer modules (#618) (diff) | |
| download | mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar.gz mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar.bz2 mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar.lz mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar.xz mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.tar.zst mason-4e0e117020336d891a5956f9a29d9f3b7163efd4.zip | |
fix(github): provide correct filename to gunzip (#625)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-lsp-installer/core/managers/github/init.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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 |
