From e310bbf38d79e426b1ad057ae2cbe2a512b556ed Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Thu, 26 May 2022 22:39:31 +0200
Subject: Fix up PGPASSWORD from botched debugging experiment
---
lib/subcommands/backup.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'lib/subcommands/backup.bash')
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
--
cgit v1.1