We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45ec44 commit e94fffcCopy full SHA for e94fffc
src/bin/destroyuser/destroyuser.sh
@@ -8,7 +8,7 @@
8
#
9
10
# IDENTIFICATION
11
-# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.10 1998/09/01 15:57:00 thomas Exp $
+# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.11 1999/03/14 16:00:55 momjian Exp $
12
13
# Note - this should NOT be setuid.
14
@@ -79,9 +79,10 @@ then
79
exit 1
80
fi
81
82
-if [ $ADDUSER != "t" ]
+if [ x$ADDUSER != xt ]
83
then
84
echo "$CMDNAME: $USER cannot delete users."
85
+ exit 1
86
87
88
@@ -152,7 +153,7 @@ then
152
153
154
155
yn=f
- while [ $yn != y -a $yn != n ]
156
+ while [ "$yn" != y -a "$yn" != n ]
157
do
158
echo PG_OPT_DASH_N_PARAM "Deleting user $DELUSER will destroy them. Continue (y/n)? PG_OPT_BACKSLASH_C_PARAM"
159
read yn
0 commit comments