From 5310e99afa8bd3263fde176851aca1a8786bdee4 Mon Sep 17 00:00:00 2001 From: micziz <99438936+micziz@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:12:30 +0200 Subject: [PATCH] Modify Y/N Co-authored-by: drugsosos <44712637+Drugsosos@users.noreply.github.com> --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c8a1cd9..df88a23 100644 --- a/install.sh +++ b/install.sh @@ -173,8 +173,8 @@ function install_main(){ echo "Assuming yes" else echo "Continue? (y/n)" - read answer - if [ "$answer" != "y" ]; then + read -r -s -n 1 answer + if [[ $answer != "" ]]; then echo "Aborting" exit 1 fi