Skip to content

Commit cf11a2e

Browse files
committed
add some verbosity
1 parent bed8687 commit cf11a2e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

check-no-fails.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22
# SPDX-License-Identifier: CC0-1.0
33
# SPDX-FileCopyrightText: 2023 The Foundation for Public Code <[email protected]>
44

5+
if [ "_${VERBOSE}_" == "__" ]; then VERBOSE=0; fi
6+
if [ $VERBOSE -gt 0 ]; then
7+
set -x
8+
URL_CHECK_VERBOSE=--verbose
9+
fi
10+
511
# $ help set | grep '\-e'
612
# -e Exit immediately if a command exits with a non-zero status.
713
set -e
814

9-
url-check/url-check.py
15+
url-check/url-check.py $URL_CHECK_VERBOSE
1016
LINES=`wc -l url-check-fails.json | cut -f1 -d' '`
1117
if [ $LINES -gt 1 ]; then
18+
echo
19+
echo "Fails: $(grep -c '"http' url-check-fails.json)"
20+
echo
1221
cat url-check-fails.json;
1322
exit 1
1423
fi

0 commit comments

Comments
 (0)