diff --git a/pscheck/pscheck.py b/pscheck/pscheck.py index 8392846..e84416d 100644 --- a/pscheck/pscheck.py +++ b/pscheck/pscheck.py @@ -181,4 +181,6 @@ def main(): args = parser.parse_args() qrcode = read_qrcode(args.file) - analyse_qrcode(qrcode, args.full, not args.dontcheck) + valid = analyse_qrcode(qrcode, args.full, not args.dontcheck) + + exit(0 if valid else 2)