mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Fix 0 delta results in size_regression.sh (#17457)
This commit is contained in:
parent
666cba5c2e
commit
aaaf3ff66a
|
@ -76,7 +76,7 @@ function build_executor() {
|
|||
|
||||
if [[ -n "$last_line" ]] ; then
|
||||
size_delta=$(( $last_size - $file_size ))
|
||||
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ $file_size -eq 0 ]] ; then
|
||||
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ -z "${skip_zero:-}" ]] || [[ $file_size -eq 0 ]] ; then
|
||||
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue