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 171f7f7 commit 522bcb4Copy full SHA for 522bcb4
ci/build.sh
@@ -1,22 +1,10 @@
1
#!/bin/bash -x
2
3
-set -o pipefail
4
-
5
-output=$(mktemp)
+set -e
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]}
+RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s
11
cp -r book/linkcheck $HOME/
12
13
mdbook build
14
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