summaryrefslogtreecommitdiff
path: root/src/bin/scripts/dropdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/scripts/dropdb')
-rw-r--r--src/bin/scripts/dropdb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/scripts/dropdb b/src/bin/scripts/dropdb
index 0a9f1661153..75ad3cea762 100644
--- a/src/bin/scripts/dropdb
+++ b/src/bin/scripts/dropdb
@@ -11,7 +11,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.12 2001/09/22 04:28:12 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropdb,v 1.13 2001/09/30 22:17:51 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -34,7 +34,7 @@ else
fi
-while [ $# -gt 0 ]
+while [ "$#" -gt 0 ]
do
case "$1" in
--help|-\?)
@@ -126,7 +126,7 @@ if [ "$forcedel" = f ]; then
$ECHO_N "Are you sure? (y/n) "$ECHO_C
read REPLY
- [ $? -eq 1 ] && exit 1
+ [ "$?" -eq 1 ] && exit 1
[ "$REPLY" != "y" -a "$REPLY" != "Y" ] && exit 0
fi
@@ -134,7 +134,7 @@ fi
dbname=`echo $dbname | sed 's/\"/\\\"/g'`
${PATHNAME}psql $PSQLOPT -d template1 -c "DROP DATABASE \"$dbname\""
-if [ $? -ne 0 ]; then
+if [ "$?" -ne 0 ]; then
echo "$CMDNAME: database removal failed" 1>&2
exit 1
fi