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 :"