From a55cd3d67668945d1d82261b4c2626f2553c4d8d Mon Sep 17 00:00:00 2001 From: Arjun Shibu <43996156+arjunsh1bu@users.noreply.github.com> Date: Sun, 22 Dec 2019 21:47:53 +0530 Subject: [PATCH] Update install.sh fixed few errors i found while running the script, Golang version updated to 1.13.5 --- install.sh | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index e203de7..4b16fed 100644 --- a/install.sh +++ b/install.sh @@ -18,12 +18,18 @@ sudo apt-get install -y git sudo apt-get install -y rename sudo apt-get install -y xargs + +#create a tools directory in ~/ +mkdir ~/tools +cd ~/tools + + + echo "installing bash_profile aliases from recon_profile" git clone https://github.com/nahamsec/recon_profile.git cd recon_profile -cat bash_profile >> ~/.bash_profile +cat .bash_profile >> ~/.bash_profile source ~/.bash_profile -cd ~/tools/ echo "done" @@ -38,15 +44,15 @@ select choice in "${choices[@]}"; do yes) echo "Installing Golang" - wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz - sudo tar -xvf go1.13.4.linux-amd64.tar.gz + wget https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz + sudo tar -xvf go1.13.5.linux-amd64.tar.gz sudo mv go /usr/local export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$PATH echo 'export GOROOT=/usr/local/go' >> ~/.bash_profile - echo 'export GOPATH=$HOME/go' >> ~/.bash_profile - echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bash_profile + echo 'export GOPATH=$HOME/go' >> ~/.bash_profile + echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bash_profile source ~/.bash_profile sleep 1 break @@ -56,7 +62,7 @@ select choice in "${choices[@]}"; do echo "Aborting installation..." exit 1 ;; - esac + esac done fi @@ -67,11 +73,6 @@ apt install -y awscli echo "Don't forget to set up AWS credentials!" - -#create a tools folder in ~/ -mkdir ~/tools -cd ~/tools/ - #install aquatone echo "Installing Aquatone" go get github.com/michenriksen/aquatone