From 2ec946ad4d8935f9c425dcfda01be04f84a830ba Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 12 Sep 2019 15:14:32 -0700 Subject: [PATCH] postgres-init-db: Require an Enter press in confirmation prompt. Signed-off-by: Anders Kaseorg --- scripts/setup/postgres-init-db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup/postgres-init-db b/scripts/setup/postgres-init-db index 932204df6e..544c852db4 100755 --- a/scripts/setup/postgres-init-db +++ b/scripts/setup/postgres-init-db @@ -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