From bdaf12c1fa1f51fa3d1e0bd6aa5ab0dc92dcc922 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 17 Sep 2014 18:50:29 +0200 Subject: [PATCH] Exit program after --update --- wpscan.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wpscan.rb b/wpscan.rb index 5672183a..59681319 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -47,6 +47,10 @@ def main puts "#{blue('[i]')} Updating the Database ..." DbUpdater.new(DATA_DIR).update(wpscan_options.verbose) puts "#{blue('[i]')} Update completed." + # exit program if only --update option is used + if wpscan_options.update + exit(0) + end end unless wpscan_options.url