Skip to content

Commit a9c09d2

Browse files
committed
Fix counting
1 parent 972b5b5 commit a9c09d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/summarise-linkcheck-output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
set -eu
66
LINKCHECK="$1"
77

8-
N_BROKEN=$(jq -r 'select(.status=="broken") | reduce inputs as $s(0;.+1)' "$LINKCHECK")
9-
N_REDIRECTED=$(jq -r 'select(.status=="redirected") | reduce inputs as $s(0;.+1)' "$LINKCHECK")
8+
N_BROKEN=$(jq -r 'select(.status=="broken")' "$LINKCHECK" | jq -s length)
9+
N_REDIRECTED=$(jq -r 'select(.status=="redirected")' "$LINKCHECK" | jq -s length)
1010

1111
# shellcheck disable=SC2086
1212
if [[ $N_BROKEN -gt 0 ]]; then

0 commit comments

Comments
 (0)