From daba1467291a461543f47da76f9a5acd90812573 Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Wed, 17 Apr 2024 13:00:27 +0200 Subject: [PATCH] fix install script --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5067763..8c8aab8 100755 --- a/install.sh +++ b/install.sh @@ -18,11 +18,11 @@ init() { UNDERLINE=$(tput smul) } -comfirm() { +confirm() { echo -en "[${GREEN}y${NORMAL}/${RED}n${NORMAL}]: " read -n 1 -r echo - if [[ $REPLY =~ ^[Nn]$ ]] + if [[ ! $REPLY =~ ^[Yy]$ ]] then exit 0 fi