Skip to content

Commit 522bcb4

Browse files
amanjeevmark-i-m
authored andcommitted
Refactor (build CI script): minimizes the script, thanks to mark-i-m
1 parent 171f7f7 commit 522bcb4

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

ci/build.sh

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
#!/bin/bash -x
22

3-
set -o pipefail
4-
5-
output=$(mktemp)
3+
set -e
64

75
mkdir -p book/
86
cp -r $HOME/linkcheck/ book/
9-
RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s 2>&1 | tee -a $output
10-
result=${PIPESTATUS[0]}
7+
RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s
118
cp -r book/linkcheck $HOME/
129

1310
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

Comments
 (0)