fix up for shellcheck

This commit is contained in:
Louis Abel 2021-11-11 08:22:34 -07:00
parent 1d0fe07add
commit e52eab3d4a
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -59,20 +59,17 @@ for ARCH in "${ARCHES[@]}"; do
# Copy the ISO and manifests into the main isos target # Copy the ISO and manifests into the main isos target
cp "${SOURCE}"/*.iso "${TARGET}/" cp "${SOURCE}"/*.iso "${TARGET}/"
cp "${SOURCE}"/*.iso.manifest "${TARGET}/" cp "${SOURCE}"/*.iso.manifest "${TARGET}/"
done pushd "${TARGET}" || exit
done # shellcheck disable=SC2086
for file in *.iso; do
# call out for checksum creation on the ISOs
pushd "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" || { echo "Failed to change directory"; exit; }
for file in isos/**/*iso*; do
arch=$(echo $file | cut -d\/ -f 2);
printf "# %s: %s bytes\n%s\n" \ printf "# %s: %s bytes\n%s\n" \
"$(basename $file)" \ "${file}" \
"$(stat -c %s $file)" \ "$(stat -c %s ${file})" \
"$(cd isos/${arch}/ && sha256sum --tag $(basename $file))" \ "$(sha256sum --tag ${file})" \
| sudo tee -a isos/${arch}/CHECKSUM; | sudo tee -a CHECKSUM;
done
done
done done
popd || { echo "Failed to change directory"; exit; }
# make a kickstart directory # make a kickstart directory
for ARCH in "${ARCHES[@]}"; do for ARCH in "${ARCHES[@]}"; do