Fix dusum file check
This commit is contained in:
parent
be6f63048b
commit
20ba5577d6
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user