Please the rubocop god

bug/bundler_fix
Carter 2017-05-23 15:13:55 -04:00 committed by GitHub
parent e945773576
commit c73e7673b1
1 changed files with 11 additions and 13 deletions

View File

@ -89,19 +89,17 @@ class MetasploitModule < Msf::Post
end
end
def run
if datastore['IGNORE_SYSTEM']
do_migrate
elsif !datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! Aborting migration.')
elsif datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! You will lose your privileges!')
do_migrate
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
print_status('You\'re not running as SYSTEM. Moving on...')
do_migrate
end
if datastore['IGNORE_SYSTEM']
do_migrate
elsif !datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! Aborting migration.')
elsif datastore['IGNORE_SYSTEM'] && is_system?
print_error('You are running as SYSTEM! You will lose your privileges!')
do_migrate
elsif !datastore['IGNORE_SYSTEM'] && !is_system?
print_status('You\'re not running as SYSTEM. Moving on...')
do_migrate
end
end
end