Skip to content

Commit b9da4b7

Browse files
committed
Droplang didn't have test for -l, list. This was really broken too.
Took test from createlang.
1 parent 4ecd278 commit b9da4b7

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/bin/scripts/droplang

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
# Portions Copyright (c) 1994, Regents of the University of California
99
#
10-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.19 2002/01/03 06:09:02 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.20 2002/01/03 08:53:00 momjian Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -96,10 +96,14 @@ do
9696
exit 1
9797
;;
9898
*)
99-
langname="$1"
100-
if [ "$2" ]; then
101-
shift
102-
dbname="$1"
99+
if [ "$list" != "t" ]
100+
then langname="$1"
101+
if [ "$2" ]
102+
then
103+
shift
104+
dbname="$1"
105+
fi
106+
else dbname="$1"
103107
fi
104108
;;
105109
esac

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy