Added -o pipefail