File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ for version in "${versions[@]}"; do
18
18
repoBase=" http://packages.elasticsearch.org/elasticsearch/${version%% .* } .x/debian"
19
19
fi
20
20
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) "
22
22
if [ -z " $fullVersion " ]; then
23
23
echo >&2 " warning: cannot find full version for $version "
24
24
continue
You can’t perform that action at this time.
0 commit comments