From 04d50ebea52512a5a5a4b1448d04f89d6ebd2dbc Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Fri, 1 May 2015 13:14:23 +0200 Subject: [PATCH] more logic --- wpscan.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpscan.rb b/wpscan.rb index 6046c8f8..f4d0419c 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -46,7 +46,8 @@ def main ) # check if db file needs upgrade and we are not running in batch mode - if update_required? && !wpscan_options.batch + # also no need to check if the user supplied the --update switch + if update_required? && !wpscan_options.batch && !wpscan_options.update puts "#{notice('[i]')} It seems like you have not updated the database for some time." print '[?] Do you want to update now? [Y]es [N]o [A]bort, default: [N]' if (input = Readline.readline) =~ /^y/i