Open belforte opened 2 weeks ago
Would it be possible to add
set +e
at the end ofenv.sh
?
Yes.
You can put a whole set +eou pipefile
to avoid annoying unbound variable errors and the pipe failing too.
I tried various things but while "exit on failed command" is gone at first approximation, if I run source env.sh -g
again it fails to detect the mode, complains, and exit the bash shell. Maybe the consequence of the set -auo pipefail
in the container itself. I leave it to you
Sure, I will have a look tomorrow.
not urgent
when inside e.g. TW container with
docker exec -ti TaskWorker bash
, after I dosource env.sh
orsource env.sh -g
to test things locally, theset -eou pipefile
"persists" so that any command with non zero exit status results in exiting the container.Would it be possible to add
set +e
at the end ofenv.sh
? Or will it cause problems elsewhere ?