Wpstools : update moved to the beginning (was at the end)

This commit is contained in:
erwanlr
2012-12-07 17:31:57 +01:00
parent 1663cdb301
commit b85ce58fb2

View File

@@ -91,6 +91,15 @@ begin
end end
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 if @generate_plugin_list
puts "[+] Generating new most popular plugin list" puts "[+] Generating new most popular plugin list"
puts puts
@@ -170,15 +179,6 @@ begin
end end
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 rescue => e
puts "[ERROR] #{e.message}" puts "[ERROR] #{e.message}"
puts "Trace :" puts "Trace :"