forked from sig_core/toolkit
Merge branch 'devel' into 'main'
add checksum creator for isos (neil) See merge request release-engineering/public/toolkit!37
This commit is contained in:
commit
870d2b8d27
@ -59,7 +59,15 @@ for ARCH in "${ARCHES[@]}"; do
|
||||
# Copy the ISO and manifests into the main isos target
|
||||
cp "${SOURCE}"/*.iso "${TARGET}/"
|
||||
cp "${SOURCE}"/*.iso.manifest "${TARGET}/"
|
||||
cat "${SOURCE}/CHECKSUM" >> "${TARGET}/CHECKSUM"
|
||||
pushd "${TARGET}" || exit
|
||||
# shellcheck disable=SC2086
|
||||
for file in *.iso; do
|
||||
printf "# %s: %s bytes\n%s\n" \
|
||||
"${file}" \
|
||||
"$(stat -c %s ${file})" \
|
||||
"$(sha256sum --tag ${file})" \
|
||||
| sudo tee -a CHECKSUM;
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user