use -L to snuff out symlinks
This commit is contained in:
parent
7d2ef9a553
commit
40463a6791
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user