summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=""