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

set -e

cd $(dirname $0)

server_dir="../servers/elixir-ls"
[ -d $server_dir ] && rm -rf $server_dir
mkdir $server_dir && cd $server_dir

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 elixir-ls