File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1- URL=" https://cdimage.debian.org/debian-cd/13.0.0 -live/amd64/iso-hybrid/debian-live-REPLACE_VERSION-amd64-standard.iso"
1+ URL=" https://cdimage.debian.org/debian-cd/current -live/amd64/iso-hybrid/debian-live-REPLACE_VERSION-amd64-standard.iso"
22TYPE=file
33CONTENTS=" \
44live/initrd.img|initrd
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
3- VERSION=$( curl -sfL https://cdimage.debian.org/debian-cd/13.0.0-live/amd64/iso-hybrid/SHA256SUMS | grep ' standard.iso' | grep -Po " (\d+\.)+\d+" | head -n1)
3+
4+ MAJOR_VERSION=" 13"
5+
6+ VERSION=$( curl -sfL https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/SHA256SUMS | grep ' standard.iso' | grep -Po " (\d+\.)+\d+" | head -n1)
7+
8+ if [[ " ${VERSION} " != " ${MAJOR_VERSION} ." * ]]; then
9+ echo " Error: Version is not ${MAJOR_VERSION} . Exiting."
10+ exit 1
11+ fi
12+
413echo " ${VERSION} "
You can’t perform that action at this time.
0 commit comments