Exit program after --update

This commit is contained in:
Peter
2014-09-17 18:50:29 +02:00
parent ef27c98056
commit bdaf12c1fa

View File

@@ -47,6 +47,10 @@ def main
puts "#{blue('[i]')} Updating the Database ..." puts "#{blue('[i]')} Updating the Database ..."
DbUpdater.new(DATA_DIR).update(wpscan_options.verbose) DbUpdater.new(DATA_DIR).update(wpscan_options.verbose)
puts "#{blue('[i]')} Update completed." puts "#{blue('[i]')} Update completed."
# exit program if only --update option is used
if wpscan_options.update
exit(0)
end
end end
unless wpscan_options.url unless wpscan_options.url