Fix shellcheck SC2013 warnings in byte-counting loops

This commit is contained in:
James Coleman 2026-06-16 13:27:29 -05:00
parent 4d800e21b4
commit b8c3c55574

View file

@ -367,12 +367,14 @@ build_trace_content() {
total=$(( total + bytes )) total=$(( total + bytes ))
done done
elif [[ -f $LOGFILE_STAGE1 ]]; then elif [[ -f $LOGFILE_STAGE1 ]]; then
for bytes in $(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE1"); do all_bytes=$(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE1")
for bytes in $all_bytes; do
total=$(( total + bytes )) total=$(( total + bytes ))
done done
fi fi
if [[ -f $LOGFILE_STAGE2 ]]; then if [[ -f $LOGFILE_STAGE2 ]]; then
for bytes in $(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE2"); do all_bytes=$(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE2")
for bytes in $all_bytes; do
total=$(( total + bytes )) total=$(( total + bytes ))
done done
fi fi