Update install.sh
This commit is contained in:
parent
97fc5a01e3
commit
7eaeb55cd5
@ -37,8 +37,8 @@ git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
|||||||
if [[ "$OS" == "macos" ]]; then
|
if [[ "$OS" == "macos" ]]; then
|
||||||
# Mac users should use Homebrew to install Go instead of this script
|
# Mac users should use Homebrew to install Go instead of this script
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ "$OS" == "debian" ]] || [[ "$OS" == "ubuntu" ]] || [[ "$OS" == "manjaro" ]]; then
|
elif [[ "$OS" == "debian" ]] || [[ "$OS" == "ubuntu" ]] ; then
|
||||||
GO_LATEST=$(curl -sL https://golang.org/VERSION?m=text | sed 's/go//')
|
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
|
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
|
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user