From 69128802bd27e70fe322a76c33d0909b77541228 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Sun, 22 Aug 2021 23:02:56 +0700 Subject: [PATCH] Fix user input --- scripts/install_phalcon.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install_phalcon.sh b/scripts/install_phalcon.sh index dcc36d2..837bf7e 100755 --- a/scripts/install_phalcon.sh +++ b/scripts/install_phalcon.sh @@ -302,6 +302,8 @@ function init_phalcon_install() { PHP_VERSION=${PHP_VERSION:-"7.3"} fi + # Check if PHP version DO_INSTALL_PHALCON="n". + DO_INSTALL_PHALCON="n" if "${AUTO_INSTALL}"; then if [[ -z "${PHP_PHALCON_INSTALLER}" || "${PHP_PHALCON_INSTALLER}" == "none" ]]; then @@ -312,7 +314,7 @@ function init_phalcon_install() { fi else while [[ "${DO_INSTALL_PHALCON}" != "y" && "${DO_INSTALL_PHALCON}" != "n" ]]; do - read -rp "Do you want to install Phalcon PHP framework? [y/n]: " -e DO_INSTALL_PHALCON + read -rp "Do you want to install Phalcon PHP framework? [y/n]: " -i n -e DO_INSTALL_PHALCON done fi