1
0
Fork 0
mirror of https://github.com/JackHack96/EasyEffects-Presets.git synced 2024-10-16 03:30:47 +00:00

fix reading choice

This commit is contained in:
Rohit Kumar 2023-07-23 08:51:51 +05:30 committed by GitHub
parent bfe00f50e1
commit 747eb827c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ read_choice() {
if [ -z "$CHOICE" ]; then
CHOICE=1 #default
fi
if [[ $CHOICE =~ ^[1-5]+$ ]]; then
if [[ $CHOICE =~ ^[1-6]+$ ]]; then
break
fi
echo "Invalid option! Please input a value between 1 and 5!"