aboutsummaryrefslogtreecommitdiff
path: root/installer/install-texlab.sh
blob: 0429ae54a8c8fe87866da404cef435b4e427c6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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

url="https://github.com/latex-lsp/texlab/releases/download/v1.8.0/texlab-x86_64-$os.tar.gz"
curl -LO "$url"
tar xzvf texlab-x86_64-$os.tar.gz