From f3930e924658fbb6643328aa6797c1cc47e6b396 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Mon, 2 Apr 2018 00:25:43 +1000 Subject: [PATCH] Allow `update-beef` script to update dependencies --- update-beef | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/update-beef b/update-beef index 2eef86e5c..802db26b1 100755 --- a/update-beef +++ b/update-beef @@ -4,6 +4,16 @@ # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # +set -euo pipefail +IFS=$'\n\t' -echo Updating... -git pull \ No newline at end of file +info() { echo -e "\\033[1;36m[INFO]\\033[0m $*"; } + +info 'Updating BeEF from GitHub repository...' +git pull + +info 'Updating dependencies...' +if [ -f Gemfile.lock ]; then + rm Gemfile.lock +fi +bundle install