Files
vim-lsp-settings-mirror/installer/install-terraform-ls.cmd
Ihor Urazov 4492fd36e5 New url for terraform-ls downloads
terraform-ls doesn't publish binaries under github releases anymore. Update url to reference releases.hashicorp.com.
2023-02-22 02:24:39 +09:00

8 lines
444 B
Batchfile

@echo off
setlocal
for /f "usebackq" %%V in (`curl -Ls -o nul -w %%{url_effective} https://github.com/hashicorp/terraform-ls/releases/latest`) do set VERSION=%%~nxV
curl -L -o terraform-ls_%VERSION%.windows.x86_64.zip "https://releases.hashicorp.com/terraform-ls/%VERSION:~1%/terraform-ls_%VERSION:~1%_windows_amd64.zip"
call "%~dp0\run_unzip.cmd" terraform-ls_%VERSION%.windows.x86_64.zip
del terraform-ls_%VERSION%.windows.x86_64.zip