From 56735a5775f572012c9f787e801a4cc5e679f335 Mon Sep 17 00:00:00 2001 From: Kieran Brownlees Date: Fri, 11 Mar 2016 14:38:03 +1300 Subject: [PATCH] Set pipefail so a pg_dump command will cause a failure --- postgres-backup-s3/backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres-backup-s3/backup.sh b/postgres-backup-s3/backup.sh index 7bd1d94..c66c19a 100644 --- a/postgres-backup-s3/backup.sh +++ b/postgres-backup-s3/backup.sh @@ -1,6 +1,7 @@ #! /bin/sh set -e +set -o pipefail if [ "${S3_ACCESS_KEY_ID}" = "**None**" ]; then echo "You need to set the S3_ACCESS_KEY_ID environment variable."