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:
@ -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():
|
||||||
|
Reference in New Issue
Block a user