From 7eaeb55cd58cdeb216c4b530871f94ad79de0927 Mon Sep 17 00:00:00 2001 From: gameloader Date: Thu, 22 Jun 2023 03:42:10 +0000 Subject: [PATCH] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 16ca3d4..a3ebdb2 100644 --- a/install.sh +++ b/install.sh @@ -37,8 +37,8 @@ git clone --depth 1 https://github.com/wbthomason/packer.nvim\ if [[ "$OS" == "macos" ]]; then # Mac users should use Homebrew to install Go instead of this script exit 0 -elif [[ "$OS" == "debian" ]] || [[ "$OS" == "ubuntu" ]] || [[ "$OS" == "manjaro" ]]; then - GO_LATEST=$(curl -sL https://golang.org/VERSION?m=text | sed 's/go//') +elif [[ "$OS" == "debian" ]] || [[ "$OS" == "ubuntu" ]] ; then + GO_LATEST=$(curl -sL "https://golang.org/VERSION?m=text" | sed 's/go//') curl https://mirrors.aliyun.com/golang/go$GO_LATEST.linux-amd64.tar.gz | sudo tar -C /usr/local -xz echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc fi