Merge branch 'master' of github.com:wpscanteam/wpscan

This commit is contained in:
Christian Mehlmauer
2013-01-13 21:08:52 +01:00
3 changed files with 37 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ begin
# Check for updates
if wpscan_options.update
unless @updater.nil?
if @updater.has_local_changes?
puts "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n]"
Readline.readline =~ /^y/i ? @updater.reset_head : raise('Update aborted')
end
puts @updater.update()
else
puts "Svn / Git not installed, or wpscan has not been installed with one of them."