postgres-init-db: Require an Enter press in confirmation prompt.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-09-12 15:14:32 -07:00 committed by Tim Abbott
parent 78b018989e
commit 2ec946ad4d
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if [[ $records -gt 200 ]]
then
set +x
echo "WARNING: This will delete your Zulip database which currently contains $records messages."
read -p "Do you want to proceed? " -n 1 -r
read -p "Do you want to proceed? [y/N] " -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then