]> granicus.if.org Git - postgresql/commitdiff
Add missing quotes.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Aug 2003 18:56:41 +0000 (18:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Aug 2003 18:56:41 +0000 (18:56 +0000)
src/bin/pg_ctl/pg_ctl.sh

index 2ba0f25f7133f2de485d519196160e8ad9b6fb13..4dcbc10d2f7a684bd40d80e76d290a0d6eb5dbea 100755 (executable)
@@ -8,7 +8,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.35 2003/08/04 23:59:39 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.36 2003/08/14 18:56:41 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -371,10 +371,10 @@ if [ "$op" = "start" -o "$op" = "restart" ];then
 
     # Attempt to use the right port
     # Use PGPORT if set, otherwise look in the configuration file
-    if [ -z $PGPORT ];then
+    if [ -z "$PGPORT" ];then
         PGPORT=`sed -ne 's/^[  ]*port[^=]*=[   ]\+\([0-9]\+\).*/\1/p' $CONFFILE 2>/dev/null`
-        if [ -z $PGPORT ];then
-            PGPORT=$DEF_PGPORT
+        if [ -z "$PGPORT" ];then
+            PGPORT="$DEF_PGPORT"
         fi
     fi