diff --git a/src/bin/destroydb/destroydb.sh b/src/bin/destroydb/destroydb.sh index 5fb2ff2313..92ee73a390 100644 --- a/src/bin/destroydb/destroydb.sh +++ b/src/bin/destroydb/destroydb.sh @@ -11,7 +11,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.7 1997/06/01 15:40:08 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.8 1997/06/02 02:53:00 scrappy Exp $ # #------------------------------------------------------------------------- @@ -30,11 +30,11 @@ if [ -z "$USER" ]; then fi dbname=$USER -forcedel=f +forcedel=t while [ -n "$1" ] do case $1 in - -y) forcedel=t;; + -i) forcedel=f;; -a) AUTHSYS=$2; shift;; -h) PGHOST=$2; shift;; -p) PGPORT=$2; shift;; @@ -67,6 +67,7 @@ if [ "$forcedel" = f ] while [ "$answer" != y -a "$answer" != n ] do + echo "Database '$dbname' will be permanently deleted." echo -n "Are you sure? (y/n) " read answer done