Browse Source

Fix golang

master
Jan-Lukas Else 9 months ago
parent
commit
6fafbb8b5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      install/golang

+ 1
- 1
install/golang View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh
url="$(wget -qO- https://golang.org/dl/ | grep -oP 'https:\/\/dl\.google\.com\/go\/go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1 )"
url="$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | sed 's/^/https:\/\/golang.org\/dl\//g' | head -n 1)"
wget "${url}" -O /tmp/go.tar.gz
rm -rf /usr/local/go
tar -C /usr/local -xzf /tmp/go.tar.gz


Loading…
Cancel
Save