Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Better Golang detection management

six2dez6bceb4fbad76
diff --git a/install.sh b/install.sh
index 431e745..7ab1867 100755
--- a/install.sh
+++ b/install.sh
@@ -23,7 +23,7 @@ install_pacman(){
sudo pacman -Sy install python python-pip ruby git libpcap chromium wget -y &>/dev/null
}
-type -P go &>/dev/null && printf "${bgreen} Golang detected\n" || printf "${bred} Golang no detected, install it before run this script\n Check https://golang.org/doc/install\n"
+type go >/dev/null 2>&1 || { printf "${bred} Golang no detected, install it before run this script\n Check https://golang.org/doc/install\n"; exit 1; }
test -f /etc/debian_version && install_apt
test -f /etc/redhat-release && install_yum