Allow `+bpo` kernels

Seems 6.10 is now being marked `+bpo`.

Improve error handling while I'm here.
reviewable/pr1126/r1
Tamir Duberstein 3 weeks ago
parent df053f095b
commit f26ccde136

@ -19,14 +19,12 @@ readonly URLS
# Find the latest revision of each kernel version. # Find the latest revision of each kernel version.
FILES=() FILES=()
for VERSION in "${VERSIONS[@]}"; do for VERSION in "${VERSIONS[@]}"; do
while read -r line; do REGEX="linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?(\+bpo)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb"
FILES+=("$line") match=$(printf '%s\n' "$URLS" | grep -E "$REGEX" | sort -V | tail -n1) || {
done <<< "$( printf '%s\nVERSION=%s\nREGEX=%s\n' "$URLS" "$VERSION" "$REGEX" >&2
printf '%s\n' "$URLS" \ exit 1
| grep -E "linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb" \ }
| sort -V \ FILES+=("$match")
| tail -n1
)"
done done
# TODO(https://github.com/curl/curl/issues/15729): restore --parallel here if and when it properly # TODO(https://github.com/curl/curl/issues/15729): restore --parallel here if and when it properly

Loading…
Cancel
Save