1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-04 20:18:27 +02:00

Always use maybe_wait_and_exit in msfupdate

This allows error messages to be seen on windows where exit closes the
console.
This commit is contained in:
Brandon Turner 2013-11-15 17:26:21 -06:00
parent e6c43bfe34
commit 2ae67d22dc

View File

@ -57,7 +57,7 @@ class Msfupdate
case opt
when '--help'
usage
exit
maybe_wait_and_exit
when '--git-remote'
@git_remote = arg
when '--git-branch'
@ -68,7 +68,7 @@ class Msfupdate
end
rescue GetoptLong::Error
stderr.puts "#{$0}: try 'msfupdate --help' for more information"
exit 0x20
maybe_wait_and_exit 0x20
end
# Handle the old wait/nowait argument behavior
@ -129,7 +129,7 @@ class Msfupdate
if not (Process.uid == 0 or File.stat(@msfbase_dir).owned?)
stderr.puts "[-] ERROR: User running msfupdate does not own the Metasploit installation"
stderr.puts "[-] Please run msfupdate as the same user who installed Metasploit."
exit 0x10
maybe_wait_and_exit 0x10
end
Dir.chdir(@msfbase_dir) do