aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-26 22:39:31 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-26 22:39:31 +0200
commite310bbf38d79e426b1ad057ae2cbe2a512b556ed (patch)
tree0642361288d9f9200828e95c393a2e371c8251b3
parent4e059127467a9bbbb7f8c9df500d06c646b206b6 (diff)
downloadbashtard-e310bbf38d79e426b1ad057ae2cbe2a512b556ed.tar.gz
bashtard-e310bbf38d79e426b1ad057ae2cbe2a512b556ed.tar.bz2
Fix up PGPASSWORD from botched debugging experiment
-rw-r--r--lib/subcommands/backup.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/subcommands/backup.bash b/lib/subcommands/backup.bash
index 2b952e7..9a23ede 100644
--- a/lib/subcommands/backup.bash
+++ b/lib/subcommands/backup.bash
@@ -126,7 +126,7 @@ backup_database_postgresql() {
remote="$(config "bashtard.backup.borg.remote_paths.$index" "borg")"
repo="$(config "bashtard.backup.repositories.$index")"
- [[ $PGPASSWORD == "" ]] && export PGPASSWORD
+ [[ -n $PGPASSWORD ]] && export PGPASSWORD
export PGUSER
while read -r database