From b9da4b726c8ae20b5298cf0a4f13f6cc4e56e6be Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 3 Jan 2002 08:53:00 +0000 Subject: [PATCH] Droplang didn't have test for -l, list. This was really broken too. Took test from createlang. --- src/bin/scripts/droplang | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/bin/scripts/droplang b/src/bin/scripts/droplang index 601775f351..b56d73ec35 100644 --- a/src/bin/scripts/droplang +++ b/src/bin/scripts/droplang @@ -7,7 +7,7 @@ # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.19 2002/01/03 06:09:02 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.20 2002/01/03 08:53:00 momjian Exp $ # #------------------------------------------------------------------------- @@ -96,10 +96,14 @@ do exit 1 ;; *) - langname="$1" - if [ "$2" ]; then - shift - dbname="$1" + if [ "$list" != "t" ] + then langname="$1" + if [ "$2" ] + then + shift + dbname="$1" + fi + else dbname="$1" fi ;; esac -- 2.40.0