about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide/ci
diff options
context:
space:
mode:
authorAmanjeev Sethi <aj@amanjeev.com>2019-10-02 20:12:26 -0400
committerWho? Me?! <mark-i-m@users.noreply.github.com>2019-10-04 16:32:47 -0500
commit96b9ee07587db17e278b46c529bc4fea010e7cda (patch)
treebe21824eb7f581e6c8ec22a7c111a09d4c6c7eae /src/doc/rustc-dev-guide/ci
parent3e2d38d34153861f0ae6947e6329307a9afdee03 (diff)
downloadrust-96b9ee07587db17e278b46c529bc4fea010e7cda.tar.gz
rust-96b9ee07587db17e278b46c529bc4fea010e7cda.zip
Refactor (build CI script): minimizes the script, thanks to mark-i-m
Diffstat (limited to 'src/doc/rustc-dev-guide/ci')
-rwxr-xr-xsrc/doc/rustc-dev-guide/ci/build.sh16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/doc/rustc-dev-guide/ci/build.sh b/src/doc/rustc-dev-guide/ci/build.sh
index 3954848419d..504957b3f4e 100755
--- a/src/doc/rustc-dev-guide/ci/build.sh
+++ b/src/doc/rustc-dev-guide/ci/build.sh
@@ -1,22 +1,10 @@
 #!/bin/bash -x
 
-set -o pipefail
-
-output=$(mktemp)
+set -e
 
 mkdir -p book/
 cp -r $HOME/linkcheck/ book/
-RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s 2>&1 | tee -a $output
-result=${PIPESTATUS[0]}
+RUST_LOG=mdbook_linkcheck=debug mdbook-linkcheck -s
 cp -r book/linkcheck $HOME/
 
 mdbook build
-
-# if passed, great!
-if [ "$result" -eq "0" ] ; then
-    echo "Linkchecks passed"
-    exit 0 ;
-else
-    echo "Linkchecks failed"
-    exit 1 ;
-fi