1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

ensure exit code never exceeds 255

This commit is contained in:
Kelly Brazil
2021-05-11 10:50:35 -07:00
parent 342db45edc
commit 48921d4584

View File

@ -476,7 +476,10 @@ def run_user_command(command):
def combined_exit_code(program_exit=0, jc_exit=0): def combined_exit_code(program_exit=0, jc_exit=0):
return program_exit + jc_exit exit_code = program_exit + jc_exit
if exit_code > 255:
exit_code = 255
return exit_code
def main(): def main():