1
0
mirror of https://github.com/Z4nzu/hackingtool.git synced 2025-06-20 06:15:54 +02:00

if [[ ! $choice =~ ^[1-2]+$ ]]; then

This commit is contained in:
Christian Clauss
2023-07-18 10:27:31 +02:00
committed by GitHub
parent 78c57596ba
commit 173c18570f

View File

@ -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"