From a5ed6ad134095e94c9278241c7225bd463096eb2 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 17 Sep 2014 23:47:54 +0200 Subject: [PATCH] Fix if statement --- wpscan.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpscan.rb b/wpscan.rb index 65516767..6761a620 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -47,8 +47,8 @@ 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 - exit(0) if wpscan_options.update + # Exit program if only one option --update is used + exit(0) if wpscan_options.to_h.count == 1 && wpscan_options.update end unless wpscan_options.url