Allow `+debN` kernels

Seems 6.12 is now being marked `+deb13`.
reviewable/pr1316/r2
Tamir Duberstein 2 weeks ago
parent 8ee12d337f
commit 9996f7a300
No known key found for this signature in database

@ -19,7 +19,7 @@ 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
REGEX="linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?(\+bpo)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb" REGEX="linux-image-${VERSION//./\\.}\\.[0-9]+(-[0-9]+)?(\+bpo|\+deb[0-9]+)?-cloud-${ARCHITECTURE}-unsigned_.*\\.deb"
match=$(printf '%s\n' "$URLS" | grep -E "$REGEX" | sort -V | tail -n1) || { match=$(printf '%s\n' "$URLS" | grep -E "$REGEX" | sort -V | tail -n1) || {
printf '%s\nVERSION=%s\nREGEX=%s\n' "$URLS" "$VERSION" "$REGEX" >&2 printf '%s\nVERSION=%s\nREGEX=%s\n' "$URLS" "$VERSION" "$REGEX" >&2
exit 1 exit 1

Loading…
Cancel
Save