From 5f626a76a08ac2a9955f4eb9b51d5f32301286cb Mon Sep 17 00:00:00 2001 From: Tanish Sharma Date: Wed, 15 Jul 2026 08:39:08 +0530 Subject: [PATCH] fix: installation script semver matching Signed-off-by: Tanish Sharma --- hack/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/install.sh b/hack/install.sh index 17086b38c..d57aa26e7 100755 --- a/hack/install.sh +++ b/hack/install.sh @@ -3,7 +3,7 @@ set -e -o pipefail # get the latest stable release by look for tag name pattern like 'v*.*.*'. For example, v1.1.1 # GitHub API returns releases in chronological order so we take the first matching tag name. -version=$(curl -s https://api.github.com/repos/cnoe-io/idpbuilder/releases | grep tag_name | grep -o -e '"v[0-9].[0-9].[0-9]"' | head -n1 | sed 's/"//g') +version=$(curl -s https://api.github.com/repos/cnoe-io/idpbuilder/releases | grep tag_name | grep -o -E '"v[0-9]+\.[0-9]+\.[0-9]+"' | head -n1 | sed 's/"//g') echo "Downloading idpbuilder version ${version}" curl -L --progress-bar -o ./idpbuilder.tar.gz "https://github.com/cnoe-io/idpbuilder/releases/download/${version}/idpbuilder-$(uname | awk '{print tolower($0)}')-$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/').tar.gz"