From 4202b013931f0439bbe9de68db9d512580b3a6d7 Mon Sep 17 00:00:00 2001 From: Kazuki Chigita Date: Sun, 22 Mar 2026 01:18:29 +0900 Subject: [PATCH] Fix install.sh version regex to allow v prefix The artifact bundle directory is named xpbc-v0.2.0-macos (with v prefix from the git tag), but the version validation regex only accepted bare semver without the v prefix. Co-Authored-By: Claude Opus 4.6 (1M context) --- Scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/install.sh b/Scripts/install.sh index 979b604..c94532a 100755 --- a/Scripts/install.sh +++ b/Scripts/install.sh @@ -42,7 +42,7 @@ if [ -z "$VERSION" ]; then echo "Error: version not found in the artifact bundle." >&2 exit 1 fi -if ! echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then +if ! echo "$VERSION" | grep -qE '^v?[0-9]+\.[0-9]+\.[0-9]+$'; then echo "Error: unexpected version format: $VERSION" >&2 exit 1 fi