Fixed go downloader in FirstSetup.sh
This commit is contained in:
@@ -11,7 +11,7 @@ apt install ca-certificates git make debootstrap curl gcc libc-dev nano gnupg2 r
|
||||
|
||||
#Install go
|
||||
rm -rf /usr/local/go
|
||||
curl -L https://go.dev/dl/go$(curl -Ls https://go.dev/VERSION?m=text |sed 's/go//g').linux-amd64.tar.gz -o /tmp/go.tar.gz
|
||||
curl -L https://go.dev/dl/go$(curl -Ls https://go.dev/VERSION?m=text | sed 's/go//g' | head -n1).linux-amd64.tar.gz -o /tmp/go.tar.gz
|
||||
tar -C /usr/local -xzf /tmp/go.tar.gz
|
||||
echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
|
||||
Reference in New Issue
Block a user