From 3bda44417c58868d58c388e41fdc44d4a5cc1235 Mon Sep 17 00:00:00 2001 From: pvinh-spike <81987648+pvinh-spike@users.noreply.github.com> Date: Tue, 7 May 2024 22:32:58 -0700 Subject: [PATCH] To handle rc tools version --- lib/version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/version.sh b/lib/version.sh index aaf6e315..5eaeab97 100644 --- a/lib/version.sh +++ b/lib/version.sh @@ -65,7 +65,7 @@ function find_latest_tools_version_for_server() { local tools_version tools_version="$( fetch "${FUNCNAME[0]}" "${ARTIFACTS_DOMAIN}/aerospike-server-${edition}/${server_version}/" | - grep -oE "_tools-[0-9.-]+(-g[a-f0-9]{7})?_${distro}_x86_64.tgz" | + grep -oE "_tools-[0-9.-]+(-rc[0-9]+)?(-g[a-f0-9]{7})?_${distro}_x86_64.tgz" | cut -d _ -f 2 | sort -V | tail -1