1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-01 21:31:19 +03:00

Fix param handling of create* admin scripts as described months ago.

Properly handles default values.
This commit is contained in:
Bruce Momjian
2002-02-18 05:48:45 +00:00
parent c9361a7a9c
commit fbcc0d69e8
8 changed files with 56 additions and 17 deletions

View File

@@ -9,7 +9,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropuser,v 1.14 2001/09/30 22:17:51 momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropuser,v 1.15 2002/02/18 05:48:45 momjian Exp $
#
# Note - this should NOT be setuid.
#
@@ -91,6 +91,11 @@ do
;;
*)
DelUser="$1"
if [ "$#" -ne 1 ]; then
echo "$CMDNAME: invalid option: $2" 1>&2
echo "Try '$CMDNAME --help' for more information." 1>&2
exit 1
fi
;;
esac
shift;