From bf074fcefb62f603eecd048e43b23e4954a461d7 Mon Sep 17 00:00:00 2001 From: Pau Rodriguez-Estivill Date: Sat, 26 Feb 2022 19:33:24 +0100 Subject: [PATCH] Fix pg_dumpall error detection --- backup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index e745ca7..7c8586c 100755 --- a/backup.sh +++ b/backup.sh @@ -1,6 +1,5 @@ -#! /bin/sh - -set -e +#!/usr/bin/env bash +set -Eeo pipefail if [ "${POSTGRES_DB}" = "**None**" -a "${POSTGRES_DB_FILE}" = "**None**" ]; then echo "You need to set the POSTGRES_DB or POSTGRES_DB_FILE environment variable."