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

Loading…
Cancel
Save