mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
See https://unix.stackexchange.com/questions/307955/uname-p-i-are-unknown `uname -m` returns machine type, which is enough for this script, `uname -p` doesn't work on most Linux distros.
23 lines
347 B
Bash
Executable File
23 lines
347 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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/latest/download/marksman-$platform"
|
|
chmod +x marksman
|