Skip to content

Commit

Permalink
Allow variables to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
WGOS committed Dec 27, 2023
1 parent ddb6612 commit 156d519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/backup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#! /bin/sh

source ./env.sh

set -eu
set -o pipefail

source ./env.sh

echo "Creating backup of $POSTGRES_DATABASE database..."
pg_dump --format=custom \
-h $POSTGRES_HOST \
Expand Down
2 changes: 1 addition & 1 deletion src/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ export PGPASSWORD=$POSTGRES_PASSWORD

if [ -f "$PASSPHRASE_FILE" ]; then
export PASSPHRASE=$(cat $PASSPHRASE_FILE)
fi
fi

0 comments on commit 156d519

Please sign in to comment.