blob: 78df09c055a4c4b94a55f90de09bf2841529fdec (
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
25
26
27
28
29
|
#!/bin/bash
set -e
cd $(dirname $0)
server_dir="../servers/reason-language-server"
[ -d $server_dir ] && rm -rf $server_dir
mkdir $server_dir && cd $server_dir
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux) ;;
darwin)
os="macos"
;;
*)
printf "%s doesn't supported by bash installer" "$os"
exit 1
;;
esac
version="1.7.4"
url="https://github.com/jaredly/reason-language-server/releases/download/$version/rls-$os.zip"
curl -LO "$url"
unzip "rls-$os.zip"
ln -s "./rls-$os/reason-language-server" .
|