Update install.sh

added a conditional to check to see if the app being installed is already present, if it isnt the install command will run if not, it will pass it
This commit is contained in:
Mad Gray Hatter 2020-08-19 11:38:47 -04:00 committed by GitHub
parent 118b7745cf
commit ec4b6dd32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ fi
echo -e "$OKBLUE[*]$RESET Installing package dependencies...$RESET"
apt-get update
for i in adb aha curl cutycapt dnsrecon dos2unix golang greenbone-security-assistant host hydra jq jsbeautifier ldapscripts libssl-dev libxml2-utils nbtscan net-tools nfs-common nikto nmap nodejs openvas p7zip-full phantomjs php7.4 php7.4-curl python python-pip python3-paramiko python3-pip rpcbind ruby rubygems sqlmap sslscan wafw00f whatweb whois xdg-utils xmlstarlet xsltproc; do
apt install -y $i 2>/dev/null
if [ ! -x `which $i` ]; then
apt install -y $i 2>/dev/null
fi
done
echo -e "$OKBLUE[*]$RESET Installing Metasploit...$RESET"