Index: contrib/pg_upgrade/pg_upgrade =================================================================== RCS file: /cvsroot/pgsql/contrib/pg_upgrade/pg_upgrade,v retrieving revision 1.11 diff -c -r1.11 pg_upgrade *** contrib/pg_upgrade/pg_upgrade 2002/01/31 19:13:53 1.11 --- contrib/pg_upgrade/pg_upgrade 2002/02/11 15:14:08 *************** *** 34,41 **** BASENAME=`basename "$0"` PHASE="" ! if [ "$#" -eq 1 ] ! then if [ "X$1" = "X-1" ] then PHASE="1" shift --- 34,41 ---- BASENAME=`basename "$0"` PHASE="" ! while [ "$#" -ne 0 ] ! do if [ "X$1" = "X-1" ] then PHASE="1" shift *************** *** 46,52 **** then PGDATA="$2" shift 2 fi ! fi if [ "$PHASE" = "" ] then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2 --- 46,52 ---- then PGDATA="$2" shift 2 fi ! done if [ "$PHASE" = "" ] then echo "You must run $BASENAME in either mode 1 or mode 2." 1>&2