1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-10 09:21:54 +03:00

Fix flag handling of pg_upgrade.

This commit is contained in:
Bruce Momjian 2002-02-11 15:19:33 +00:00
parent 15c30b6f9a
commit 966e6478b5

View File

@ -3,7 +3,7 @@
# pg_upgrade: update a database without needing a full dump/reload cycle. # pg_upgrade: update a database without needing a full dump/reload cycle.
# CAUTION: Read the manual page before trying to use this! # CAUTION: Read the manual page before trying to use this!
# $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.11 2002/01/31 19:13:53 momjian Exp $ # $Header: /cvsroot/pgsql/contrib/pg_upgrade/Attic/pg_upgrade,v 1.12 2002/02/11 15:19:33 momjian Exp $
# #
# To migrate this to newer versions of PostgreSQL: # To migrate this to newer versions of PostgreSQL:
# 1) Update the version numbers at the top of the file # 1) Update the version numbers at the top of the file
@ -34,8 +34,8 @@ trap "rm -f /tmp/$$.*" 0 1 2 3 15
BASENAME=`basename "$0"` BASENAME=`basename "$0"`
PHASE="" PHASE=""
if [ "$#" -eq 1 ] while [ "$#" -ne 0 ]
then do
if [ "X$1" = "X-1" ] if [ "X$1" = "X-1" ]
then PHASE="1" then PHASE="1"
shift shift
@ -46,7 +46,7 @@ then
then PGDATA="$2" then PGDATA="$2"
shift 2 shift 2
fi fi
fi done
if [ "$PHASE" = "" ] if [ "$PHASE" = "" ]
then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2 then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2