diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-14 18:56:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-14 18:56:41 +0000 |
commit | 4529d2cf274fe48735c67a833dab600c42c842c6 (patch) | |
tree | d9ddc6fc4535b75a01587ce0b33f4c8a69e7ef8d /src | |
parent | 80cedf9ba0e9f9c386dc3099956fe187f915cb02 (diff) | |
download | postgresql-4529d2cf274fe48735c67a833dab600c42c842c6.tar.gz postgresql-4529d2cf274fe48735c67a833dab600c42c842c6.zip |
Add missing quotes.
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/pg_ctl/pg_ctl.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.sh b/src/bin/pg_ctl/pg_ctl.sh index 2ba0f25f713..4dcbc10d2f7 100755 --- a/src/bin/pg_ctl/pg_ctl.sh +++ b/src/bin/pg_ctl/pg_ctl.sh @@ -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 |