diff options
Diffstat (limited to 'lib/subcommands/backup.bash')
-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 |