Skip to content

Commit 650f509

Browse files
committed
Correct amount of lines in head calls due to extra line
1 parent 660bde7 commit 650f509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ $has_errors -eq 0 ]; then
8181
fi
8282

8383
if [[ -e "${annotation_path}" ]]; then
84-
TOTAL_TESTS=$(head -4 "${annotation_path}" | grep 'Total tests' | cut -d\ -f3)
84+
TOTAL_TESTS=$(head -5 "${annotation_path}" | grep 'Total tests' | cut -d\ -f3)
8585
else
8686
TOTAL_TESTS=0
8787
fi
@@ -96,7 +96,7 @@ elif ! check_size; then
9696

9797
# creating a simplified version of the annotation
9898
mv "${annotation_path}" "${annotation_path}2"
99-
head -4 "${annotation_path}2" >"${annotation_path}"
99+
head -5 "${annotation_path}2" >"${annotation_path}"
100100
# || true is to avoid issues if no summary is found
101101
grep '<summary>' "${annotation_path}2" >>"${annotation_path}" || true
102102

0 commit comments

Comments
 (0)