fix: node path

This commit is contained in:
2024-11-01 17:44:30 +08:00
parent ff4629cafe
commit 12af360c37
2 changed files with 28 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
set -e
# install neovim
os_arch=$(uname -s)-$(uname -m)
case $os_arch in
"Darwin-x86_64")
cd /usr/local
wget https://golang.google.cn/dl/go1.23.2.linux-amd64.tar.gz
tar zxvf go1.23.2.linux-amd64.tar.gz
;;
"Linux-x86_64"|"Linux-arm64")
cd /tmp
rm -rf nvim-linux64.tar.gz
wget https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
tar zxvf go1.23.2.linux-amd64.tar.gz
mv go /usr/local/
sudo ln -s /usr/local/go/bin/go/usr/local/bin/go
;;
esac