Give different return code if we found nothing in sshwot-filter

This commit is contained in:
Juhani Krekelä 2018-09-01 23:57:14 +03:00
parent c6427722de
commit af2d8413f7
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ def main():
# Print the matches in sshwot format
write_file.write(args.outfile, matches)
# If we found nothing, return code 2
sys.exit(2)
if __name__ == '__main__':
try:
main()