Browse Source

Update Go version

content-update
xpetit 3 years ago
parent
commit
bb2094dcdc
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 6
      docs/setup/configure.sh
  2. 6
      sh/debian/ubuntu/configure.sh
  3. 4
      subjects/wget/audit/README.md

6
docs/setup/configure.sh

@ -8,9 +8,9 @@ set -x
sudo apt -y install man bash-completion git jq curl build-essential netcat wget psmisc file net-tools brotli unzip zip moreutils pv tree whois openssh-client
wget https://golang.org/dl/go1.15.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz
rm go1.15.2.linux-amd64.tar.gz
wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
rm go1.16.3.linux-amd64.tar.gz
cat <<'EOF'>> ~/.bashrc
GOPATH=$HOME/go
PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

6
sh/debian/ubuntu/configure.sh diff.vendored

@ -154,9 +154,9 @@ grub-install "$disk"
# Install Go
wget https://dl.google.com/go/go1.16.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
rm go1.16.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
rm go1.16.3.linux-amd64.tar.gz
# shellcheck disable=2016
echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile

4
subjects/wget/audit/README.md

@ -8,9 +8,9 @@
###### Did the program download the expected file?
##### Try to run the following command `"./wget https://golang.org/dl/go1.15.linux-amd64.tar.gz"`
##### Try to run the following command `"./wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz"`
###### Did the program download the file `"go1.15.linux-amd64.tar.gz"`?
###### Did the program download the file `"go1.16.3.linux-amd64.tar.gz"`?
###### Did the program displayed the start time?

Loading…
Cancel
Save