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 totalKBytes=0
for MODULE in ${MODULES:?}; do for MODULE in ${MODULES:?}; do
eval dusum="\${${MODULE}_dusum:-}" eval dusum="\${${MODULE}_dusum:-}"
if [[ -n $dusum ]]; then if [[ -n $dusum ]] && [[ -f $dusum ]]; then
while read -r size path; do while read -r size path; do
if [[ -n $size ]]; then if [[ -n $size ]]; then
totalKBytes=$((totalKBytes+size)) totalKBytes=$((totalKBytes+size))
@ -313,7 +313,7 @@ rebuild_dusum_totals() {
totalKBytes=0 totalKBytes=0
for MODULE in ${MODULES:?}; do for MODULE in ${MODULES:?}; do
eval dusum="\${${MODULE}_dusum:-}" eval dusum="\${${MODULE}_dusum:-}"
if [[ -n $dusum ]]; then if [[ -n $dusum ]] && [[ -f $dusum ]]; then
while read -r size path; do while read -r size path; do
if [[ -n $size ]]; then if [[ -n $size ]]; then
totalKBytes=$((totalKBytes+size)) totalKBytes=$((totalKBytes+size))