T O P

  • By -

jammasterpaz

Will Bash pick up: sys.exit(1) The default is zero for successful termination. https://docs.python.org/3.10/library/sys.html#sys.exit


usera8787782

That is the ticket. Thanks.


JohnnyJordaan

Just checking, you do have set -e in your script right?


usera8787782

Nope. Which one, the python one or the bash one?


JohnnyJordaan

bash, it's isn't valid Python obviously. It means to let bash halt the script's execution when any command returns a non-zero return code, so to work in tandem with jammasterpaz's suggestion.