1
0
Fork 0
mirror of https://github.com/JackHack96/EasyEffects-Presets.git synced 2024-11-23 06:10:09 +00:00

Merge pull request #39 from letmutx/fix-read_choice

allow choosing the new preset
This commit is contained in:
Matteo Iervasi 2023-07-23 07:56:59 +02:00 committed by GitHub
commit 834bc5007b
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 if [ -z "$CHOICE" ]; then
CHOICE=1 #default CHOICE=1 #default
fi fi
if [[ $CHOICE =~ ^[1-5]+$ ]]; then if [[ $CHOICE =~ ^[1-6]+$ ]]; then
break break
fi fi
echo "Invalid option! Please input a value between 1 and 5!" echo "Invalid option! Please input a value between 1 and 5!"