Skip to content

Commit

Permalink
Switch to not use the \d character class
Browse files Browse the repository at this point in the history
Apparently, Bash doesn't actually support this in its regexes. How
annoying...
  • Loading branch information
za419 committed Aug 1, 2024
1 parent deaaad8 commit 534aaa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Set a rate limit timeout in integer seconds. This prevents the same listener
from requesting songs within the configured timeframe. Set to 0 to disable.
END
read -p " Rate limit (0): " CADENCE_RATE
while ! [[ "$CADENCE_RATE" =~ ^\d*$ ]]
while ! [[ "$CADENCE_RATE" =~ ^[0-9]*$ ]]
do
echo "Rate limit must be an integer!"
read -p " Rate limit (0): " CADENCE_RATE
Expand Down

0 comments on commit 534aaa9

Please # to comment.