From d5acdadd00da1ad1a4cdead238a14c5a8d9fc4e9 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 24 Apr 2025 00:13:13 -0400 Subject: [PATCH] Use extended regex for webscrape --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index f2ae283..d65eb0e 100755 --- a/installJRMC +++ b/installJRMC @@ -449,8 +449,8 @@ get_latest_mc_version() { mc_version_source="containerized package manager" execute buildah rm "$cnt" # Fallback to webscrape - elif MC_VERSION=$(download "$BOARD_URL" "-" | grep -o "[0-9][0-9]\.[0-9]\.[0-9]\+" | head -n 1) && - [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then + elif MC_VERSION=$(download "$BOARD_URL" "-" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1) && + [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then mc_version_source="webscrape" # Fallback to hardcoded value else