Files
embbed-rust/ci/install.sh
Philipp Hansch 103e14698e Replace nursery links with rust-lang links
Both repos have been moved to the `rust-lang` org and the links are
still redirecting properly. This way we just avoid the redirect and make
the link shorter.
2020-01-27 07:11:13 +01:00

18 lines
477 B
Bash

set -euxo pipefail
main() {
local tag=$(git ls-remote --tags --refs --exit-code \
https://github.com/rust-lang/mdbook \
| cut -d/ -f3 \
| grep -E '^v[0-9\.]+$' \
| sort --version-sort \
| tail -n1)
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git rust-lang/mdbook --tag $tag
pip install linkchecker --user
}
main