aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/createdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/scripts/createdb')
-rw-r--r--src/bin/scripts/createdb11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bin/scripts/createdb b/src/bin/scripts/createdb
index bed7c3bec7d..800d560cc03 100644
--- a/src/bin/scripts/createdb
+++ b/src/bin/scripts/createdb
@@ -11,7 +11,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.2 1999/12/07 22:41:44 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.3 1999/12/08 10:29:55 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -112,9 +112,12 @@ if [ "$usage" ]; then
fi
-if [ "$MB" -a -z "`pg_encoding '$MB'`" ]; then
- echo "$CMDNAME: \"$MB\" is not a valid encoding name."
- exit 1
+if [ "$MB" ]
+then if [ -z "`pg_encoding '$MB'`" ]
+ then
+ echo "$CMDNAME: \"$MB\" is not a valid encoding name."
+ exit 1
+ fi
fi
if [ -z "$dbname" ]; then