mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user