We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972b5b5 commit a9c09d2Copy full SHA for a9c09d2
ci/summarise-linkcheck-output
@@ -5,8 +5,8 @@
5
set -eu
6
LINKCHECK="$1"
7
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")
+N_BROKEN=$(jq -r 'select(.status=="broken")' "$LINKCHECK" | jq -s length)
+N_REDIRECTED=$(jq -r 'select(.status=="redirected")' "$LINKCHECK" | jq -s length)
10
11
# shellcheck disable=SC2086
12
if [[ $N_BROKEN -gt 0 ]]; then
0 commit comments