Skip to content

Commit

Permalink
To handle rc tools version (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvinh-spike committed May 8, 2024
1 parent ad8cea0 commit 05c47ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05c47ea

Please sign in to comment.