From 534aaa9ea2176f17e7cdae13becec7d87ace13f7 Mon Sep 17 00:00:00 2001 From: Ryan Hodin Date: Thu, 1 Aug 2024 02:30:37 -0500 Subject: [PATCH] Switch to not use the \d character class Apparently, Bash doesn't actually support this in its regexes. How annoying... --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5fbad2d6..ac2c2426 100755 --- a/install.sh +++ b/install.sh @@ -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