Fix command_exists method in install script

This commit is contained in:
Brendan Coles
2018-03-09 08:32:22 +00:00
parent 9c185aadce
commit cf6a72013f

View File

@@ -21,7 +21,7 @@ echo "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#"
echo echo
command_exists () { command_exists () {
command -v "$1" /dev/null 2&>1 command -v "$1" /dev/null 2&>/dev/null
} }
info() { echo "[INFO] $*"; } info() { echo "[INFO] $*"; }
@@ -65,6 +65,7 @@ install_linux () {
} }
install_mac () { install_mac () {
# brew install ...
echo echo
} }
@@ -119,14 +120,14 @@ else
gem install bundler gem install bundler
fi fi
echo "Installing required Ruby gems..." info "Installing required Ruby gems..."
bundle install --without test development bundle install --without test development
echo echo
echo "==========================================" echo "=========================================="
echo echo
info "Install completed successfully!" echo " Install completed successfully!"
info "Run './beef' to launch BeEF" echo " Run './beef' to launch BeEF"
echo echo
echo "==========================================" echo "=========================================="
echo echo