Skip to content

Commit

Permalink
Fix command_exists method in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Mar 9, 2018
1 parent 9c185aa commit cf6a720
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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] $*"; }
Expand Down Expand Up @@ -65,6 +65,7 @@ install_linux () {
}

install_mac () {
# brew install ...
echo
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cf6a720

Please sign in to comment.