Skip to content

Commit 41db5cb

Browse files
committed
Add a little fudge room for epochs in case they need to use one in the future
1 parent 730ed65 commit 41db5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for version in "${versions[@]}"; do
1818
repoBase="http://packages.elasticsearch.org/elasticsearch/${version%%.*}.x/debian"
1919
fi
2020

21-
fullVersion="$(curl -fsSL "$repoBase/dists/stable/main/binary-amd64/Packages" | awk -F ': ' '$1 == "Package" { pkg = $2 } pkg == "elasticsearch" && $1 == "Version" && $2 ~ /^'"$version"'/ { print $2 }' | sort -rV | head -n1)"
21+
fullVersion="$(curl -fsSL "$repoBase/dists/stable/main/binary-amd64/Packages" | awk -F ': ' '$1 == "Package" { pkg = $2 } pkg == "elasticsearch" && $1 == "Version" && $2 ~ /^([0-9]+:)?'"$version"'/ { print $2 }' | sort -rV | head -n1)"
2222
if [ -z "$fullVersion" ]; then
2323
echo >&2 "warning: cannot find full version for $version"
2424
continue

0 commit comments

Comments
 (0)