From 5227bbf53f95797e911e4e404c458de8ef3d5122 Mon Sep 17 00:00:00 2001 From: Alexwang <37797285+Alexxxing@users.noreply.github.com> Date: Wed, 13 Apr 2022 11:20:16 +0800 Subject: [PATCH 1/2] Update install.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新版本v0.10.0无法匹配到 --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index cdd91d24..4c680e12 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -51,7 +51,7 @@ done OS=$(echo $OS | awk '{print tolower($0)}') # Get the latest version of swctl. -VERSION=$(curl "https://raw.githubusercontent.com/apache/skywalking-website/master/data/releases.yml" | grep --after-context=7 "name: SkyWalking CLI" | grep "version" | grep -o "[0-9].[0-9].[0-9]") +VERSION=$(curl "https://raw.githubusercontent.com/apache/skywalking-website/master/data/releases.yml" | grep --after-context=7 "name: SkyWalking CLI" | grep "version" | grep -Eo "[0-9].[0-9]+.[0-9]") if [ "$VERSION" != "" ]; then echo "The latest version of swctl is $VERSION" From ab9cf4c0c2242ef7d2e115492266438e2d92d1fd Mon Sep 17 00:00:00 2001 From: Alexwang <37797285+Alexxxing@users.noreply.github.com> Date: Wed, 13 Apr 2022 15:44:26 +0800 Subject: [PATCH 2/2] feature: update install.sh version regex update install.sh regex to match new version --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4c680e12..83508f34 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -51,7 +51,7 @@ done OS=$(echo $OS | awk '{print tolower($0)}') # Get the latest version of swctl. -VERSION=$(curl "https://raw.githubusercontent.com/apache/skywalking-website/master/data/releases.yml" | grep --after-context=7 "name: SkyWalking CLI" | grep "version" | grep -Eo "[0-9].[0-9]+.[0-9]") +VERSION=$(curl "https://raw.githubusercontent.com/apache/skywalking-website/master/data/releases.yml" | grep --after-context=7 "name: SkyWalking CLI" | grep "version" | grep -Eo "[0-9]+.[0-9]+.[0-9]+") if [ "$VERSION" != "" ]; then echo "The latest version of swctl is $VERSION"