Fix dusum file check

This commit is contained in:
GRMrGecko 2023-12-29 18:06:09 -06:00
parent be6f63048b
commit 20ba5577d6

View File

@ -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))