mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
26 lines
459 B
Bash
Executable File
26 lines
459 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
|
|
|
case $os in
|
|
linux)
|
|
if [ "$(uname -m)" = "x86_64" ]; then
|
|
filename="helm_ls_linux_amd64"
|
|
else
|
|
filename="helm_ls_linux_arm"
|
|
fi
|
|
;;
|
|
darwin)
|
|
if [ "$(uname -m)" = "x86_64" ]; then
|
|
filename="helm_ls_darwin_amd64"
|
|
else
|
|
filename="helm_ls_darwin_arm64"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
curl -L -o helm-ls "https://github.com/mrjosh/helm-ls/releases/latest/download/$filename"
|
|
chmod 755 helm-ls
|