diff --git a/src/main-filter.py b/src/main-filter.py index b1ab342..1c043b8 100644 --- a/src/main-filter.py +++ b/src/main-filter.py @@ -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()