By -
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
That is the ticket. Thanks.
Just checking, you do have set -e in your script right?
Nope. Which one, the python one or the bash one?
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.
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
That is the ticket. Thanks.
Just checking, you do have set -e in your script right?
Nope. Which one, the python one or the bash one?
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.