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.17 2001/09/22 04:28:12 momjian Exp $
10+ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.18 2001/09/30 22:17:51 momjian Exp $
1111#
1212# -------------------------------------------------------------------------
1313
3636# ----------
3737# Get options, language name and dbname
3838# ----------
39- while [ $# -gt 0 ]
39+ while [ " $# " -gt 0 ]
4040do
4141 case " $1 " in
4242 --help|-\? )
@@ -168,7 +168,7 @@ if [ "$showsql" = yes ]; then
168168 echo " $sqlcmd "
169169fi
170170lanplcallfoid=` $PSQL " $sqlcmd " `
171- if [ $? -ne 0 ]; then
171+ if [ " $? " -ne 0 ]; then
172172 echo " $CMDNAME : external error" 1>&2
173173 exit 1
174174fi
@@ -186,13 +186,13 @@ if [ "$showsql" = yes ]; then
186186 echo " $sqlcmd "
187187fi
188188res=` $PSQL " $sqlcmd " `
189- if [ $? -ne 0 ]; then
189+ if [ " $? " -ne 0 ]; then
190190 echo " $CMDNAME : external error" 1>&2
191191 exit 1
192192fi
193193if [ " $res " -ne 0 ]; then
194194 echo " $CMDNAME : There are $res functions/trigger procedures declared in language" 1>&2
195- echo " $langname . Language not removed." 1>&2
195+ echo " $langname . Language not removed." 1>&2
196196 exit 1
197197fi
198198
@@ -204,7 +204,7 @@ if [ "$showsql" = yes ]; then
204204 echo " $sqlcmd "
205205fi
206206res=` $PSQL " $sqlcmd " `
207- if [ $? -ne 0 ]; then
207+ if [ " $? " -ne 0 ]; then
208208 echo " $CMDNAME : external error" 1>&2
209209 exit 1
210210fi
@@ -222,7 +222,7 @@ if [ "$showsql" = yes ]; then
222222 echo " $sqlcmd "
223223fi
224224$PSQL " $sqlcmd "
225- if [ $? -ne 0 ]; then
225+ if [ " $? " -ne 0 ]; then
226226 echo " $CMDNAME : language removal failed" 1>&2
227227 exit 1
228228fi
@@ -239,7 +239,7 @@ if [ "$showsql" = yes ]; then
239239 echo " $sqlcmd "
240240fi
241241handler=` $PSQL " $sqlcmd " `
242- if [ $? -ne 0 ]; then
242+ if [ " $? " -ne 0 ]; then
243243 echo " $CMDNAME : external error" 1>&2
244244 exit 1
245245fi
@@ -249,7 +249,7 @@ if [ "$showsql" = yes ]; then
249249 echo " $sqlcmd "
250250fi
251251$PSQL " $sqlcmd "
252- if [ $? -ne 0 ]; then
252+ if [ " $? " -ne 0 ]; then
253253 echo " $CMDNAME : language removal failed" 1>&2
254254 exit 1
255255fi
0 commit comments