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 bed8687 commit cf11a2eCopy full SHA for cf11a2e
check-no-fails.sh
@@ -2,13 +2,22 @@
2
# SPDX-License-Identifier: CC0-1.0
3
# SPDX-FileCopyrightText: 2023 The Foundation for Public Code <[email protected]>
4
5
+if [ "_${VERBOSE}_" == "__" ]; then VERBOSE=0; fi
6
+if [ $VERBOSE -gt 0 ]; then
7
+ set -x
8
+ URL_CHECK_VERBOSE=--verbose
9
+fi
10
+
11
# $ help set | grep '\-e'
12
# -e Exit immediately if a command exits with a non-zero status.
13
set -e
14
-url-check/url-check.py
15
+url-check/url-check.py $URL_CHECK_VERBOSE
16
LINES=`wc -l url-check-fails.json | cut -f1 -d' '`
17
if [ $LINES -gt 1 ]; then
18
+ echo
19
+ echo "Fails: $(grep -c '"http' url-check-fails.json)"
20
21
cat url-check-fails.json;
22
exit 1
23
fi
0 commit comments