File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3950,8 +3950,12 @@ if [ "$EPHEMERAL_MODE" = false ]; then
39503950 else
39513951 # Container doesn't exist - try to create it
39523952 echo " Creating persistent container: $CONTAINER_NAME "
3953- error_output=$( docker " ${DOCKER_ARGS[@]} " tail -f /dev/null 2>&1 )
3954- docker_exit=$?
3953+ # `|| docker_exit=$?` is load-bearing: under `set -e` a failing
3954+ # command-substitution assignment aborts the script AT the assignment,
3955+ # so the error handling below would be dead code on the exact path it
3956+ # exists for. Keep the assignment left of `||` to suspend `set -e`.
3957+ docker_exit=0
3958+ error_output=$( docker " ${DOCKER_ARGS[@]} " tail -f /dev/null 2>&1 ) || docker_exit=$?
39553959 if [ $docker_exit -ne 0 ]; then
39563960 # Check if specifically a name collision (concurrent run)
39573961 if echo " $error_output " | grep -qE ' already in use|Conflict' ; then
You can’t perform that action at this time.
0 commit comments