From 173c18570fab9efbdcdd1dd27e662daf3c993835 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 18 Jul 2023 10:27:31 +0200 Subject: [PATCH] if [[ ! $choice =~ ^[1-2]+$ ]]; then --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1fd60e3..c9f1d03 100755 --- a/install.sh +++ b/install.sh @@ -51,11 +51,11 @@ echo -e "${WHITE} [0] Exit " echo -e "${COLOR}┌──($USER㉿$HOST)-[$(pwd)]" choice=$1 -if [[ $choice =~ ^[1-2]+$ ]]; then +echo "choice is $choice" +if [[ ! $choice =~ ^[1-2]+$ ]]; then read -p "└─$>>" choice fi - # Define installation directories install_dir="/usr/share/hackingtool" bin_dir="/usr/bin"