GHA/distcheck: fix parsing the download page

Fixing:
```
curl: (3) URL rejected: Malformed input to a URL function
```
Ref: https://github.com/curl/curl/actions/runs/27370389568/job/80880800780

Refs:
1735f6af6a
https://github.com/curl/curl-www/pull/593

Follow-up to 2cc171cbd4 #21759

Closes #21977
This commit is contained in:
Viktor Szakats 2026-06-11 22:02:31 +02:00
parent bcb2890c6f
commit 0cd0a64de4
No known key found for this signature in database

View file

@ -393,7 +393,7 @@ jobs:
run: |
echo "--- Detecting latest curl tarball version..."
curl_version="$(curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused https://curl.se/download.html \
| grep -o -E 'curl [0-9]+\.[0-9]+\.[0-9]+' | cut -c 6-)"
| grep -o -E 'curl [0-9]+\.[0-9]+\.[0-9]+' | head -n 1 | cut -c 6-)"
for suffix in .tar.bz2 .tar.gz .tar.xz .zip; do
echo "--- Downloading ${curl_version} ${suffix}..."