Compare commits
No commits in common. "e8cc922c6156422d23ba1cc1ad65f1e8a459090e" and "0cbb8a326dbc4cc46b263b733a7980b1413e288c" have entirely different histories.
e8cc922c61
...
0cbb8a326d
@ -362,6 +362,8 @@ homedir="$(getent passwd $SUDO_USER | cut -d: -f6)"
|
||||
debug=false
|
||||
downloadall=false
|
||||
usezsh=""
|
||||
echo $homedir
|
||||
sleep 10
|
||||
|
||||
# run the program
|
||||
if [ $# -eq 0 ]; then
|
||||
|
@ -5,11 +5,12 @@ 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
|
||||
sudo -u $SUDO_USER wget "https://go.dev"$latestversionsh
|
||||
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