mirror of
https://github.com/Z4nzu/hackingtool
synced 2024-11-14 19:55:19 +00:00
if [[ ! $choice =~ ^[1-2]+$ ]]; then
This commit is contained in:
parent
78c57596ba
commit
173c18570f
@ -51,11 +51,11 @@ echo -e "${WHITE} [0] Exit "
|
|||||||
|
|
||||||
echo -e "${COLOR}┌──($USER㉿$HOST)-[$(pwd)]"
|
echo -e "${COLOR}┌──($USER㉿$HOST)-[$(pwd)]"
|
||||||
choice=$1
|
choice=$1
|
||||||
if [[ $choice =~ ^[1-2]+$ ]]; then
|
echo "choice is $choice"
|
||||||
|
if [[ ! $choice =~ ^[1-2]+$ ]]; then
|
||||||
read -p "└─$>>" choice
|
read -p "└─$>>" choice
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Define installation directories
|
# Define installation directories
|
||||||
install_dir="/usr/share/hackingtool"
|
install_dir="/usr/share/hackingtool"
|
||||||
bin_dir="/usr/bin"
|
bin_dir="/usr/bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user