Skip to content

Commit 973360a

Browse files
daskygitzykrah
authored andcommitted
Fix 0 delta results in size_regression.sh (qmk#17457)
1 parent 8c883ba commit 973360a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/size_regression.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function build_executor() {
7676

7777
if [[ -n "$last_line" ]] ; then
7878
size_delta=$(( $last_size - $file_size ))
79-
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ $file_size -eq 0 ]] ; then
79+
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ -z "${skip_zero:-}" ]] || [[ $file_size -eq 0 ]] ; then
8080
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
8181
fi
8282
fi

0 commit comments

Comments
 (0)