Files
vim-lsp-settings-mirror/installer/install-ra_lsp_server.sh
2020-01-31 00:06:49 +09:00

21 lines
374 B
Bash
Executable File

#!/usr/bin/env bash
set -e
os=$(uname -s | tr "[:upper:]" "[:lower:]")
case $os in
linux)
platform="linux"
;;
darwin)
platform="mac"
;;
esac
version="2020-01-29"
curl -L -o ra_lsp_server-$platform "https://github.com/rust-analyzer/rust-analyzer/releases/download/$version/ra_lsp_server-$platform"
mv ra_lsp_server-$platform ra_lsp_server
chmod +x ra_lsp_server