redundant sha

This commit is contained in:
Louis Abel 2021-11-11 18:24:37 -07:00
parent c50a112344
commit 8b9fe76af6
Signed by: label
GPG Key ID: B37E62D143879B36
1 changed files with 9 additions and 9 deletions

View File

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