File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8585if [ ! -e " linkchecker/main.rs" ] || [ " $iterative " = " 0" ]
8686then
8787 echo " Downloading linkchecker source..."
88+ nightly_hash=$( rustc +nightly -Vv | grep commit-hash | cut -f2 -d" " )
89+ url=" https://raw.githubusercontent.com/rust-lang/rust"
8890 mkdir linkchecker
89- curl -o linkchecker/Cargo.toml \
90- https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/Cargo.toml
91- curl -o linkchecker/main.rs \
92- https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/main.rs
91+ curl -o linkchecker/Cargo.toml ${url} /${nightly_hash} /src/tools/linkchecker/Cargo.toml
92+ curl -o linkchecker/main.rs ${url} /${nightly_hash} /src/tools/linkchecker/main.rs
9393fi
9494
9595echo " Building book \" $book_name \" ..."
You can’t perform that action at this time.
0 commit comments