From 20ba5577d6c44e261f78a2f3b705a8a20861d6bb Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Fri, 29 Dec 2023 18:06:09 -0600 Subject: [PATCH] Fix dusum file check --- mirror-sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror-sync.sh b/mirror-sync.sh index c71f358..f1be810 100644 --- a/mirror-sync.sh +++ b/mirror-sync.sh @@ -293,7 +293,7 @@ rebuild_dusum_totals() { totalKBytes=0 for MODULE in ${MODULES:?}; do eval dusum="\${${MODULE}_dusum:-}" - if [[ -n $dusum ]]; then + if [[ -n $dusum ]] && [[ -f $dusum ]]; then while read -r size path; do if [[ -n $size ]]; then totalKBytes=$((totalKBytes+size)) @@ -313,7 +313,7 @@ rebuild_dusum_totals() { totalKBytes=0 for MODULE in ${MODULES:?}; do eval dusum="\${${MODULE}_dusum:-}" - if [[ -n $dusum ]]; then + if [[ -n $dusum ]] && [[ -f $dusum ]]; then while read -r size path; do if [[ -n $size ]]; then totalKBytes=$((totalKBytes+size))