fixed golang install, needed to add to bashrc
This commit is contained in:
parent
e8d2fb6aae
commit
f0a9c874ed
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash -i
|
||||||
|
|
||||||
# Get the full html and get the link of the button
|
# Get the full html and get the link of the button
|
||||||
wget https://go.dev/dl/
|
wget https://go.dev/dl/
|
||||||
|
|
||||||
@ -13,4 +15,11 @@ sudo -u $SUDO_USER wget "https://go.dev"$latestversionsh
|
|||||||
|
|
||||||
# Remove any previous Go installation then extract the archive
|
# 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
|
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
|
||||||
|
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||||
|
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.zshrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.bashrc
|
||||||
|
|
||||||
|
source ~/.bashrc
|
Loading…
x
Reference in New Issue
Block a user