From 40463a67914bd8123e3b77724290f45e5f848385 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 17 May 2023 17:47:48 -0700 Subject: [PATCH] use -L to snuff out symlinks --- sync/beta-release-sync-to-staging.sh | 2 +- sync/lh-release-sync-to-staging.sh | 2 +- sync/minor-release-sync-to-staging.sh | 4 ++-- sync/symlink-images-and-checksum.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sync/beta-release-sync-to-staging.sh b/sync/beta-release-sync-to-staging.sh index 4034863..486b55f 100644 --- a/sync/beta-release-sync-to-staging.sh +++ b/sync/beta-release-sync-to-staging.sh @@ -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 diff --git a/sync/lh-release-sync-to-staging.sh b/sync/lh-release-sync-to-staging.sh index ea3106f..00031d1 100644 --- a/sync/lh-release-sync-to-staging.sh +++ b/sync/lh-release-sync-to-staging.sh @@ -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 diff --git a/sync/minor-release-sync-to-staging.sh b/sync/minor-release-sync-to-staging.sh index b681eb9..29a20f3 100644 --- a/sync/minor-release-sync-to-staging.sh +++ b/sync/minor-release-sync-to-staging.sh @@ -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" diff --git a/sync/symlink-images-and-checksum.sh b/sync/symlink-images-and-checksum.sh index 4a62773..4288646 100644 --- a/sync/symlink-images-and-checksum.sh +++ b/sync/symlink-images-and-checksum.sh @@ -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