use -L to snuff out symlinks

This commit is contained in:
Louis Abel 2023-05-17 17:47:48 -07:00
parent 7d2ef9a553
commit 40463a6791
Signed by: label
GPG Key ID: B37E62D143879B36
4 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
for file in *.iso; do
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file})" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a CHECKSUM;
done

View File

@ -35,7 +35,7 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
for file in *.iso; do
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file})" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a CHECKSUM;
done

View File

@ -39,13 +39,13 @@ for COMPOSE in "${NONSIG_COMPOSE[@]}"; do
for file in *.iso; do
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file})" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a CHECKSUM;
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file})" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a "${file}.CHECKSUM"

View File

@ -16,7 +16,7 @@ for ARCH in "${ARCHES[@]}"; do
for file in *.iso; do
printf "# %s: %s bytes\n%s\n" \
"${file}" \
"$(stat -c %s ${file})" \
"$(stat -c %s ${file} -L)" \
"$(sha256sum --tag ${file})" \
| sudo tee -a CHECKSUM;
done