blob: 0f00c008e2d3ac439b36308c34974d0885cba401 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env bash
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
platform="linux"
;;
darwin)
platform="mac"
;;
esac
version="2020-02-24"
curl -L -o rust-analyzer-$platform "https://github.com/rust-analyzer/rust-analyzer/releases/download/$version/rust-analyzer-$platform"
mv rust-analyzer-$platform rust-analyzer
chmod +x rust-analyzer
|