Skip to content

Commit

Permalink
Fix pg_dumpall error detection
Browse files Browse the repository at this point in the history
  • Loading branch information
prodrigestivill committed Feb 26, 2022
1 parent 1dd8f3a commit bf074fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backup.sh
Original file line number Diff line number Diff line change
@@ -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."
Expand Down

0 comments on commit bf074fc

Please sign in to comment.