summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev-pg-container.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dev-pg-container.sh b/scripts/dev-pg-container.sh
index 586e8a2..a2f029f 100644
--- a/scripts/dev-pg-container.sh
+++ b/scripts/dev-pg-container.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash
+die() {
+ echo >&2 "$*"
+ exit 1
+}
+
[ -z "$PG_USER" ] && die "Not set: PG_USER"
[ -z "$PG_PW" ] && die "Not set: PG_PW"
[ -z "$PG_DB" ] && die "Not set: PG_DB"