Only have 2 return codes: success and failure

This commit is contained in:
Juhani Krekelä 2018-09-02 15:39:57 +03:00
parent 13d74c8d3f
commit 8c0505a077
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ def main():
# If we found nothing, return code 2
if len(matches) == 0:
sys.exit(2)
sys.exit(1)
if __name__ == '__main__':
try:

View File

@ -124,7 +124,7 @@ def main():
if any_verified and not any_fail:
sys.exit(0)
else:
sys.exit(2)
sys.exit(1)
if __name__ == '__main__':
try: