So the following workaround can be used: set +euo pipefail at the beginning of the run command to suppress most potential failures in the bash script.