diff options
| author | William Boman <william@redwill.se> | 2021-08-22 08:50:27 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-22 08:57:04 +0200 |
| commit | b0e701f8493240942003e773059fce229b103b57 (patch) | |
| tree | d1ed9238de75ac487b4fe9abc430f73e3a532879 /lua/nvim-lsp-installer | |
| parent | Bump Haskell Language Server to version 1.3.0 (#59) (diff) | |
| download | mason-b0e701f8493240942003e773059fce229b103b57.tar mason-b0e701f8493240942003e773059fce229b103b57.tar.gz mason-b0e701f8493240942003e773059fce229b103b57.tar.bz2 mason-b0e701f8493240942003e773059fce229b103b57.tar.lz mason-b0e701f8493240942003e773059fce229b103b57.tar.xz mason-b0e701f8493240942003e773059fce229b103b57.tar.zst mason-b0e701f8493240942003e773059fce229b103b57.zip | |
replace all usage of curl(1) with wget(1)
Diffstat (limited to 'lua/nvim-lsp-installer')
4 files changed, 8 insertions, 9 deletions
diff --git a/lua/nvim-lsp-installer/installers/shell.lua b/lua/nvim-lsp-installer/installers/shell.lua index 6cbe26ae..bfdb5dea 100644 --- a/lua/nvim-lsp-installer/installers/shell.lua +++ b/lua/nvim-lsp-installer/installers/shell.lua @@ -33,7 +33,7 @@ function M.raw(raw_script, opts) end function M.remote(url, opts) - return M.raw(("curl -s -f %q | bash"):format(url), opts) + return M.raw(("wget -nv -O - %q | bash"):format(url), opts) end return M diff --git a/lua/nvim-lsp-installer/servers/denols/init.lua b/lua/nvim-lsp-installer/servers/denols/init.lua index fd8f684d..3ab7a8e2 100644 --- a/lua/nvim-lsp-installer/servers/denols/init.lua +++ b/lua/nvim-lsp-installer/servers/denols/init.lua @@ -4,15 +4,14 @@ local shell = require "nvim-lsp-installer.installers.shell" local root_dir = server.get_server_root_path "denols" -local install_cmd = [=[ -export DENO_INSTALL="$PWD" -curl -fsSL https://deno.land/x/install/install.sh | sh -]=] - return server.Server:new { name = "denols", root_dir = root_dir, - installer = shell.raw(install_cmd), + installer = shell.remote("https://deno.land/x/install/install.sh", { + env = { + DENO_INSTALL = root_dir, + }, + }), default_options = { cmd = { path.concat { root_dir, "bin", "deno" }, "lsp" }, }, diff --git a/lua/nvim-lsp-installer/servers/elixirls/init.lua b/lua/nvim-lsp-installer/servers/elixirls/init.lua index 52f3acd0..5fa5e408 100644 --- a/lua/nvim-lsp-installer/servers/elixirls/init.lua +++ b/lua/nvim-lsp-installer/servers/elixirls/init.lua @@ -8,7 +8,7 @@ return server.Server:new { name = "elixirls", root_dir = root_dir, installer = shell.raw [[ - curl -fLO https://github.com/elixir-lsp/elixir-ls/releases/download/v0.7.0/elixir-ls.zip; + wget -O elixir-ls.zip https://github.com/elixir-lsp/elixir-ls/releases/download/v0.7.0/elixir-ls.zip; unzip elixir-ls.zip -d elixir-ls; rm elixir-ls.zip; chmod +x elixir-ls/language_server.sh; diff --git a/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua b/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua index d17da911..8aaf77de 100644 --- a/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua +++ b/lua/nvim-lsp-installer/servers/kotlin_language_server/init.lua @@ -8,7 +8,7 @@ return server.Server:new { name = "kotlin_language_server", root_dir = root_dir, installer = shell.raw [[ - curl -fLO https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip; + wget -O server.zip https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip; unzip server.zip; rm server.zip; ]], |
