mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2026-10-27 10:15:06 +01:00
- install-clangd.sh: quote $cmd inside which (SC2086). - install-marksman.sh: quote $(uname -m) in test (SC2046).
25 lines
373 B
Bash
Executable File
25 lines
373 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
version="2026-02-08"
|
|
|
|
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
|
if [ "$(uname -m)" = "x86_64" ];
|
|
then
|
|
arch="x64"
|
|
else
|
|
arch="arm64"
|
|
fi
|
|
case $os in
|
|
linux)
|
|
platform="linux-"$arch
|
|
;;
|
|
darwin)
|
|
platform="macos"
|
|
;;
|
|
esac
|
|
|
|
curl -L -o marksman "https://github.com/artempyanykh/marksman/releases/download/$version/marksman-$platform"
|
|
chmod +x marksman
|