Skip to content

Commit

Permalink
Simplify regular expression as per Kevin's.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvinh-spike committed Jan 29, 2024
1 parent aed2b28 commit 5d34cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -Eeuo pipefail
source lib/fetch.sh

ARTIFACTS_DOMAIN=${ARTIFACTS_DOMAIN:="https://artifacts.aerospike.com"}
RE_VERSION='[0-9]+[.][0-9]+[.][0-9]+([.][0-9]+)+(-rc[0-9]+)*+([-][0-9]*[-]g[0-9a-zA-Z]*)*'
RE_VERSION='[0-9]+[.][0-9]+[.][0-9]+([.][0-9]+)+(-rc[0-9]+)?([-][0-9]*[-]g[0-9a-z]*)?'

function version_compare_gt() {
v1=$1
Expand Down
2 changes: 1 addition & 1 deletion scripts/10-download.part
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ \
# 10-download.part - Vars used for tini and tools.
VERSION="$(grep -oE "/[0-9]+[.][0-9]+[.][0-9]+([.][0-9]+)+(-rc[0-9]+)*+([-][0-9]*[-]g[0-9a-zA-Z]*)*/" <<<"${AEROSPIKE_X86_64_LINK}" | tr -d '/' | tail -1)"; \
VERSION="$(grep -oE "/[0-9]+[.][0-9]+[.][0-9]+([.][0-9]+)+(-rc[0-9]+)?([-][0-9]+[-]g[0-9a-z]*)?/" <<<"${AEROSPIKE_X86_64_LINK}" | tr -d '/' | tail -1)"; \
}; \
{ \
# 10-common.part - Install tini.
Expand Down

0 comments on commit 5d34cca

Please sign in to comment.