From cf6a72013f3252cf55d6b980968bbb1ab98f42e7 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Fri, 9 Mar 2018 08:32:22 +0000 Subject: [PATCH] Fix command_exists method in install script --- install | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install b/install index ca079f93e..cb10056f6 100755 --- a/install +++ b/install @@ -21,7 +21,7 @@ echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#" echo command_exists () { - command -v "$1" /dev/null 2&>1 + command -v "$1" /dev/null 2&>/dev/null } info() { echo "[INFO] $*"; } @@ -65,6 +65,7 @@ install_linux () { } install_mac () { + # brew install ... echo } @@ -119,14 +120,14 @@ else gem install bundler fi -echo "Installing required Ruby gems..." +info "Installing required Ruby gems..." bundle install --without test development echo echo "==========================================" echo -info "Install completed successfully!" -info "Run './beef' to launch BeEF" +echo " Install completed successfully!" +echo " Run './beef' to launch BeEF" echo echo "==========================================" echo