superfluous shasum for isos

This commit is contained in:
Louis Abel 2023-11-18 14:51:57 -07:00
parent 0bbfd68611
commit 2b355c1302
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -37,19 +37,13 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
ln -s "Rocky-${REVISION}-${ARCH}-dvd1.iso" "Rocky-${ARCH}-dvd.iso" ln -s "Rocky-${REVISION}-${ARCH}-dvd1.iso" "Rocky-${ARCH}-dvd.iso"
ln -s "Rocky-${REVISION}-${ARCH}-minimal.iso" "Rocky-${ARCH}-minimal.iso" ln -s "Rocky-${REVISION}-${ARCH}-minimal.iso" "Rocky-${ARCH}-minimal.iso"
for file in *.iso; do for file in *.iso; do
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a CHECKSUM;
printf "# %s: %s bytes\n%s\n" \ printf "# %s: %s bytes\n%s\n" \
"${file}" \ "${file}" \
"$(stat -c %s ${file} -L)" \ "$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \ "$(sha256sum --tag ${file})" \
| sudo tee -a "${file}.CHECKSUM" | sudo tee -a "${file}.CHECKSUM"
done done
cat *.CHECKSUM > CHECKSUM
popd || { echo "Could not change directory"; break; } popd || { echo "Could not change directory"; break; }
done done
rm -rf Minimal rm -rf Minimal