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
|
# Print the matches in sshwot format
|
||||||
write_file.write(args.outfile, matches)
|
write_file.write(args.outfile, matches)
|
||||||
|
|
||||||
|
# If we found nothing, return code 2
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue