Always exit from maybe_wait_and_exit
Previously calling maybe_wait_and_exit wouldn't actually exit. This was the wrong behavior.bug/bundler_fix
parent
8ea83ed1c6
commit
730edc4bf5
|
@ -119,8 +119,6 @@ Options:
|
||||||
raise RuntimeError, "Cannot determine checkout type: `#{@msfbase_dir}'"
|
raise RuntimeError, "Cannot determine checkout type: `#{@msfbase_dir}'"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
maybe_wait_and_exit(0)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_git!
|
def update_git!
|
||||||
|
@ -240,6 +238,8 @@ Options:
|
||||||
stdout.puts ""
|
stdout.puts ""
|
||||||
stdin.readline
|
stdin.readline
|
||||||
exit exit_code
|
exit exit_code
|
||||||
|
else
|
||||||
|
exit exit_code
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -266,4 +266,5 @@ if __FILE__ == $PROGRAM_NAME
|
||||||
cli = Msfupdate.new(File.dirname(msfbase))
|
cli = Msfupdate.new(File.dirname(msfbase))
|
||||||
cli.parse_args(ARGV.dup)
|
cli.parse_args(ARGV.dup)
|
||||||
cli.run!
|
cli.run!
|
||||||
|
cli.maybe_wait_and_exit
|
||||||
end
|
end
|
||||||
|
|
|
@ -49,7 +49,7 @@ describe Msfupdate do
|
||||||
# By default, we want to ensure tests never actually try to execute any
|
# By default, we want to ensure tests never actually try to execute any
|
||||||
# of the update methods unless we are explicitly testing them
|
# of the update methods unless we are explicitly testing them
|
||||||
subject.stub(:update_apt!)
|
subject.stub(:update_apt!)
|
||||||
subject.stub(:update_binary_installer!)
|
subject.stub(:update_binary_install!)
|
||||||
subject.stub(:update_git!)
|
subject.stub(:update_git!)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue