summaryrefslogtreecommitdiff
path: root/backup-pg
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-09-15 15:31:16 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2007-09-15 15:31:16 +0000
commitc722c12fa1a8fff00a6e57ac3003db2417bcc790 (patch)
tree9e988e62790c599cccad61824a0274bdd62f2a56 /backup-pg
parent94318ebc447acb14579528245d77bcbb3ac1a14c (diff)
change PORT usage
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@297 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'backup-pg')
-rwxr-xr-xbackup-pg2
1 files changed, 2 insertions, 0 deletions
diff --git a/backup-pg b/backup-pg
index 15b5725..c452648 100755
--- a/backup-pg
+++ b/backup-pg
@@ -17,6 +17,8 @@ DATE=`date "+%Y%m%d-%H%M%S"`
#PORT="-p 5433"
if [ -z "${PORT:-}" ]; then
PORT=""
+else
+ PORT="-p $PORT"
fi
if [ -z "${PREFIX:-}" ]; then
PREFIX=""