Commit 870d2b8d authored by Louis Abel's avatar Louis Abel 📺
Browse files

Merge branch 'devel' into 'main'

add checksum creator for isos (neil)

See merge request !37
parents e4e25187 e52eab3d
Pipeline #111 passed with stage
in 31 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment