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 85
85
if [ ! -e " linkchecker/main.rs" ] || [ " $iterative " = " 0" ]
86
86
then
87
87
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"
88
90
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
93
93
fi
94
94
95
95
echo " Building book \" $book_name \" ..."
You can’t perform that action at this time.
0 commit comments