1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Fix script scripts/prepareUbuntuInstanceForITests.sh for new go.dev API

* Adapt finding the current go version to the new result of https://go.dev/VERSION\?m=text by using only the first line.


Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
This commit is contained in:
JanHoefelmeyer 2023-08-17 20:17:15 +02:00 committed by GitHub
parent 0b914f7e7a
commit bda7ade837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ apt update
apt install -y make bash curl gnupg sed tar git nginx fcgiwrap gnutls-bin apt install -y make bash curl gnupg sed tar git nginx fcgiwrap gnutls-bin
# Install Go from binary distribution # Install Go from binary distribution
latest_go="$(curl https://go.dev/VERSION\?m=text).linux-amd64.tar.gz" latest_go="$(curl https://go.dev/VERSION\?m=text| head -1).linux-amd64.tar.gz"
curl -O https://dl.google.com/go/$latest_go curl -O https://dl.google.com/go/$latest_go
rm -rf /usr/local/go # be sure that we do not have an old installation rm -rf /usr/local/go # be sure that we do not have an old installation
tar -C /usr/local -xzf $latest_go tar -C /usr/local -xzf $latest_go