diff options
Diffstat (limited to 'src/bin/createdb/createdb.sh')
-rw-r--r-- | src/bin/createdb/createdb.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bin/createdb/createdb.sh b/src/bin/createdb/createdb.sh index 741b34e2ea6..4448eee6705 100644 --- a/src/bin/createdb/createdb.sh +++ b/src/bin/createdb/createdb.sh @@ -11,7 +11,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.5 1996/11/14 10:24:46 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.6 1996/11/17 03:54:44 bryanh Exp $ # #------------------------------------------------------------------------- @@ -42,27 +42,27 @@ do shift; done -if [-z "$AUTHSYS" ]; then - AUTHOPT = "" +if [ -z "$AUTHSYS" ]; then + AUTHOPT="" else - AUTHOPT = "-a $AUTHSYS" + AUTHOPT="-a $AUTHSYS" fi -if [-z "$PGHOST" ]; then - PGHOSTOPT = "" +if [ -z "$PGHOST" ]; then + PGHOSTOPT="" else - PGHOSTOPT = "-h $PGHOST" + PGHOSTOPT="-h $PGHOST" fi -if [-z "$PGPORT" ]; then - PGPORTOPT = "" +if [ -z "$PGPORT" ]; then + PGPORTOPT="" else - PGPORTOPT = "-p $PGPORT" + PGPORTOPT="-p $PGPORT" fi psql -tq $AUTHOPT $PGHOSTOPT $PGPORTOPT -c "create database $dbname" template1 -if [ $? -ne 0 ] +if [ $? -ne 0 ]; then echo "$CMDNAME: database creation failed on $dbname." exit 1 fi |