mirror of
https://github.com/rocky-linux/checksums.git
synced 2024-11-21 21:31:24 +00:00
18 lines
463 B
Bash
18 lines
463 B
Bash
#!/bin/bash
|
|
# Run this to update checksums, providing the correct values to pull down the
|
|
# correct release and architectures
|
|
|
|
VER=$1
|
|
ARCH=$2
|
|
TYPE=$3
|
|
|
|
if [[ "${TYPE}" == "images" ]]; then
|
|
OUTPUT="${1}-${2}-combined.checksum"
|
|
elif [[ "${TYPE}" == "live" ]]; then
|
|
OUTPUT="${1}-${2}-live.ISO.checksum"
|
|
elif [[ "${TYPE}" == "isos" ]]; then
|
|
OUTPUT="${1}-${2}.ISO.checksum"
|
|
fi
|
|
|
|
curl https://dl.rockylinux.org/stg/rocky/${VER}/${TYPE}/${ARCH}/CHECKSUM > ${OUTPUT}
|