Testing db stuff

This commit is contained in:
erwanlr
2014-09-10 17:08:12 +02:00
parent 99837127a6
commit 1b377dd674
5 changed files with 6 additions and 8 deletions

View File

@@ -39,10 +39,6 @@ def main
# Check for updates
if wpscan_options.update
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update
puts 'Done.'
if !@updater.nil?
if @updater.has_local_changes?
print "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n] "
@@ -53,6 +49,11 @@ def main
puts '[i] Svn / Git not installed, or wpscan has not been installed with one of them.'
puts "#{red('[!]')} Update aborted"
end
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update
puts 'Done.'
exit(0)
end