aboutsummaryrefslogtreecommitdiff
path: root/installer/install-elixir-ls.sh
blob: e3209c82bda126c25456bd33b25f1cf9186da71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

set -e

version="v0.2.25"
url="https://github.com/JakeBecker/elixir-ls/releases/download/$version/elixir-ls.zip"
curl -LO "$url"
unzip elixir-ls.zip
rm elixir-ls.zip

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

DIR=\$(cd \$(dirname \$0); pwd)
\$DIR/language_server.sh \$*
EOF

chmod +x language_server.sh
chmod +x elixir-ls