Skip to content

Commit 81e0d56

Browse files
committed
Always write the file as long as the option is set
1 parent 46a0ea6 commit 81e0d56

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def cmd_vulns(*args)
907907
end
908908
end
909909

910-
unless tbl.rows.empty?
910+
if out_file
911911
File.write(output_file, tbl.to_csv)
912912
print_status("Wrote vulnerability information to #{output_file}")
913913
end

0 commit comments

Comments
 (0)