Skip to content

Commit

Permalink
Fix counting
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Mar 5, 2023
1 parent 972b5b5 commit a9c09d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/summarise-linkcheck-output
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
set -eu
LINKCHECK="$1"

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

# shellcheck disable=SC2086
if [[ $N_BROKEN -gt 0 ]]; then
Expand Down

0 comments on commit a9c09d2

Please sign in to comment.