From aa3f53f08a56fcc48cb40972f6db7bd5abf111f0 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" <6406592+v0y4g3r@users.noreply.github.com> Date: Wed, 7 Aug 2024 22:07:32 +0800 Subject: [PATCH] fix: install script (#4527) fix: install script always install v0.9.0-nightly-20240709 instead of latest nightly --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 5740c565ed..6c2db89709 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -53,7 +53,7 @@ get_arch_type if [ -n "${OS_TYPE}" ] && [ -n "${ARCH_TYPE}" ]; then # Use the latest nightly version. if [ "${VERSION}" = "latest" ]; then - VERSION=$(curl -s -XGET "https://api.github.com/repos/${GITHUB_ORG}/${GITHUB_REPO}/releases" | grep tag_name | grep nightly | cut -d: -f 2 | sed 's/.*"\(.*\)".*/\1/' | uniq | sort -r | head -n 1) + VERSION=$(curl -s -XGET "https://api.github.com/repos/${GITHUB_ORG}/${GITHUB_REPO}/releases" | grep tag_name | grep nightly | cut -d: -f 2 | sed 's/.*"\(.*\)".*/\1/' | uniq | sort -rV | head -n 1) if [ -z "${VERSION}" ]; then echo "Failed to get the latest version." exit 1