No point to save if there's no payload

bug/bundler_fix
sinn3r 2014-12-19 16:35:17 -06:00
parent c2bc182db5
commit cd444ed2db
1 changed files with 3 additions and 0 deletions

View File

@ -312,6 +312,9 @@ if __FILE__ == $0
$stderr.puts e.message
end
# No payload generated, no point to go on
exit(0) unless payload
if generator_opts[:out]
begin
::File.open(generator_opts[:out], 'wb') do |f|