diff --git a/ci/install.sh b/ci/install.sh index 3745af0..e73b4b7 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -1,15 +1,18 @@ set -euxo pipefail main() { - local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \ + local tag=$(git ls-remote --tags --refs --exit-code \ + https://github.com/rust-lang/mdbook \ | cut -d/ -f3 \ - | grep -E '^v0.2.[0-9]+$' \ + | grep -E '^v[0-9\.]+$' \ | sort --version-sort \ | tail -n1) - # Temporarily use older version until packages are available for 0.2.2 (or newer) - local tag="v0.2.1" + curl -LSfs https://japaric.github.io/trust/install.sh | \ - sh -s -- --git rust-lang-nursery/mdbook --tag $tag + sh -s -- \ + --force \ + --git rust-lang/mdbook \ + --tag $tag pip install linkchecker --user }