summaryrefslogtreecommitdiff
path: root/backup-pg
diff options
context:
space:
mode:
Diffstat (limited to 'backup-pg')
-rwxr-xr-xbackup-pg2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-pg b/backup-pg
index 79274c2..671afc5 100755
--- a/backup-pg
+++ b/backup-pg
@@ -64,7 +64,7 @@ else
exit 1
fi
-$SUDO psql $PORT -l -t | awk '$1 != "" {print $1}' |
+$SUDO psql $PORT --list --tuples-only | grep -v '^.*:' | awk '$1 != "" {print $1}' |
while read db; do
if [ "$db" = "template0" -o "$db" = "template1" ] ; then
continue;