Db Update draft
This commit is contained in:
@@ -39,6 +39,12 @@ def main
|
||||
|
||||
# Check for updates
|
||||
if wpscan_options.update
|
||||
puts 'Updating the DB ..'
|
||||
DbUpdater.new(DATA_DIR).update
|
||||
puts 'Done.'
|
||||
|
||||
exit # remove me
|
||||
|
||||
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] "
|
||||
|
||||
Reference in New Issue
Block a user