diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-05-26 22:39:31 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-05-26 22:39:31 +0200 |
commit | e310bbf38d79e426b1ad057ae2cbe2a512b556ed (patch) | |
tree | 0642361288d9f9200828e95c393a2e371c8251b3 | |
parent | 4e059127467a9bbbb7f8c9df500d06c646b206b6 (diff) |
Fix up PGPASSWORD from botched debugging experiment
-rw-r--r-- | lib/subcommands/backup.bash | 2 |
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 |