Give different return code if we found nothing in sshwot-filter
This commit is contained in:
parent
c6427722de
commit
af2d8413f7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue