From 747eb827c94348b286af3e0d2e88c79b469fd039 Mon Sep 17 00:00:00 2001 From: Rohit Kumar Date: Sun, 23 Jul 2023 08:51:51 +0530 Subject: [PATCH] fix reading choice --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7ca993a..31a3fc8 100755 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ read_choice() { if [ -z "$CHOICE" ]; then CHOICE=1 #default fi - if [[ $CHOICE =~ ^[1-5]+$ ]]; then + if [[ $CHOICE =~ ^[1-6]+$ ]]; then break fi echo "Invalid option! Please input a value between 1 and 5!"