choice=$1

This commit is contained in:
Christian Clauss 2023-07-18 10:10:44 +02:00 committed by GitHub
parent e6f0e39f77
commit 90eb7f2980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,10 @@ echo -e "${WHITE} [2] Arch Linux (pacman)" # added arch linux suppo
echo -e "${WHITE} [0] Exit "
echo -e "${COLOR}┌──($USER$HOST)-[$(pwd)]"
read -p "└─$>>" choice
choice=$1
if [[ $choice =~ ^[1-2]+$ ]]; then
read -p "└─$>>" choice
fi
# Define installation directories