Skip to content

Commit

Permalink
Fix elixir-ls installer
Browse files Browse the repository at this point in the history
  • Loading branch information
pojiro authored and mattn committed Sep 17, 2023
1 parent 7344e00 commit 9f8fc44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions installer/install-elixir-ls.cmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@echo off

setlocal
set VERSION=0.15.1
curl -L -o elixir-ls.zip "https://github.com/elixir-lsp/elixir-ls/releases/download/v%VERSION%/elixir-ls.zip"
call "%~dp0\run_unzip.cmd" elixir-ls.zip
del elixir-ls.zip
set VERSION=v0.15.1
set ZIP=elixir-ls-%VERSION%.zip
curl -L -o "%ZIP%" "https://github.com/elixir-lsp/elixir-ls/releases/download/%VERSION%/%ZIP%"
call "%~dp0\run_unzip.cmd" "%ZIP%"
del "%ZIP%"

echo @echo off ^

Expand Down
9 changes: 5 additions & 4 deletions installer/install-elixir-ls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
set -e

version="v0.15.1"
url="https://github.com/elixir-lsp/elixir-ls/releases/download/$version/elixir-ls.zip"
curl -LO "$url"
unzip elixir-ls.zip
rm elixir-ls.zip
zip="elixir-ls-$version.zip"
url="https://github.com/elixir-lsp/elixir-ls/releases/download/$version/$zip"
curl -L -o "$zip" "$url"
unzip "$zip"
rm "$zip"

cat <<EOF >elixir-ls
#!/bin/sh
Expand Down

0 comments on commit 9f8fc44

Please sign in to comment.