|
11 | 11 | #
|
12 | 12 | #
|
13 | 13 | # IDENTIFICATION
|
14 |
| -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.2 1999/12/07 22:41:44 momjian Exp $ |
| 14 | +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.3 1999/12/08 10:29:55 momjian Exp $ |
15 | 15 | #
|
16 | 16 | #-------------------------------------------------------------------------
|
17 | 17 |
|
@@ -112,9 +112,12 @@ if [ "$usage" ]; then
|
112 | 112 | fi
|
113 | 113 |
|
114 | 114 |
|
115 |
| -if ["$MB"-a-z"`pg_encoding'$MB'`" ];then |
116 |
| -echo"$CMDNAME:\"$MB\" is not a valid encoding name." |
117 |
| -exit 1 |
| 115 | +if ["$MB" ] |
| 116 | +thenif [-z"`pg_encoding'$MB'`" ] |
| 117 | +then |
| 118 | +echo"$CMDNAME:\"$MB\" is not a valid encoding name." |
| 119 | +exit 1 |
| 120 | +fi |
118 | 121 | fi
|
119 | 122 |
|
120 | 123 | if [-z"$dbname" ];then
|
|