From b85ce58fb2a1387f2f3ef543b6403c82d9cf8f9d Mon Sep 17 00:00:00 2001 From: erwanlr Date: Fri, 7 Dec 2012 17:31:57 +0100 Subject: [PATCH] Wpstools : update moved to the beginning (was at the end) --- wpstools.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wpstools.rb b/wpstools.rb index 26f432ad..d7a50cf0 100755 --- a/wpstools.rb +++ b/wpstools.rb @@ -91,6 +91,15 @@ begin end end + if @update + unless @updater.nil? + puts @updater.update() + else + puts "Svn / Git not installed, or wpscan has not been installed with one of them." + puts "Update aborted" + end + end + if @generate_plugin_list puts "[+] Generating new most popular plugin list" puts @@ -170,15 +179,6 @@ begin end end - if @update - unless @updater.nil? - puts @updater.update() - else - puts "Svn / Git not installed, or wpscan has not been installed with one of them." - puts "Update aborted" - end - end - rescue => e puts "[ERROR] #{e.message}" puts "Trace :"