Unverified Commit 173c1857 authored by Christian Clauss's avatar Christian Clauss Committed by GitHub
Browse files

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

parent 78c57596
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"