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

set -e

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.5"
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" .