permission changes
This commit is contained in:
parent
1740c9b5ee
commit
e8cc922c61
@ -5,12 +5,11 @@ wget https://go.dev/dl/
|
||||
latestversionsh="$(grep -w 'downloadBox' "index.html")"
|
||||
latestversionsh=$(echo "$latestversionsh" | grep 'linux')
|
||||
|
||||
a="$(grep -w 'data-linux="' "download")"
|
||||
latestversionsh=${latestversionsh#*'href="'}
|
||||
latestversionsh=${latestversionsh%'">'*}
|
||||
|
||||
# Download latest golang version
|
||||
wget "https://go.dev"$latestversionsh
|
||||
sudo -u $SUDO_USER wget "https://go.dev"$latestversionsh
|
||||
|
||||
# Remove any previous Go installation then extract the archive
|
||||
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user