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 feb3229 commit 171f7f7Copy full SHA for 171f7f7
ci/build.sh
@@ -1,17 +1,22 @@
1
#!/bin/bash -x
2
3
+set -o pipefail
4
+
5
output=$(mktemp)
6
7
mkdir -p book/
8
cp -r $HOME/linkcheck/ book/
9
RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s 2>&1 | tee -a $output
10
+result=${PIPESTATUS[0]}
11
cp -r book/linkcheck $HOME/
12
13
mdbook build
14
-result=${PIPESTATUS[0]}
-
15
# if passed, great!
16
if [ "$result" -eq "0" ] ; then
17
+ echo "Linkchecks passed"
18
exit 0 ;
19
+else
20
+ echo "Linkchecks failed"
21
+ exit 1 ;
22
fi
0 commit comments