redundant sha

This commit is contained in:
Louis Abel 2021-11-11 18:24:37 -07:00
parent c50a112344
commit 8b9fe76af6
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -60,16 +60,16 @@ for ARCH in "${ARCHES[@]}"; do
cp "${SOURCE}"/*.iso "${TARGET}/" cp "${SOURCE}"/*.iso "${TARGET}/"
cp "${SOURCE}"/*.iso.manifest "${TARGET}/" cp "${SOURCE}"/*.iso.manifest "${TARGET}/"
pushd "${TARGET}" || { echo "Could not change directory"; break; } pushd "${TARGET}" || { echo "Could not change directory"; break; }
# 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
popd || { echo "Could not change directory"; break; }
done done
# 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
popd || { echo "Could not change directory"; break; }
done done
# make a kickstart directory # make a kickstart directory