mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
use sys.exit(0) instead of exit()
This commit is contained in:
@ -322,7 +322,7 @@ def magic():
|
|||||||
valid_command, run_command = generate_magic_command(sys.argv)
|
valid_command, run_command = generate_magic_command(sys.argv)
|
||||||
if valid_command:
|
if valid_command:
|
||||||
os.system(run_command)
|
os.system(run_command)
|
||||||
exit()
|
sys.exit(0)
|
||||||
elif run_command is None:
|
elif run_command is None:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
@ -358,7 +358,7 @@ def main():
|
|||||||
|
|
||||||
if 'a' in options:
|
if 'a' in options:
|
||||||
json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output())
|
json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output())
|
||||||
exit()
|
sys.exit(0)
|
||||||
|
|
||||||
if sys.stdin.isatty():
|
if sys.stdin.isatty():
|
||||||
helptext('missing piped data')
|
helptext('missing piped data')
|
||||||
|
Reference in New Issue
Block a user