Run nightly only if NIGHTLY_TOOLCHAIN is defined
This commit is contained in:
parent
367f17989b
commit
e6aa050772
6
doc.sh
6
doc.sh
|
@ -4,7 +4,11 @@ set -eux
|
|||
|
||||
cd $(dirname $0)
|
||||
|
||||
rustup run $NIGHTLY_TOOLCHAIN cargo doc
|
||||
if [ -s NIGHTLY_TOOLCHAIN ]; then
|
||||
rustup run $NIGHTLY_TOOLCHAIN cargo doc
|
||||
else
|
||||
cargo doc
|
||||
fi;
|
||||
|
||||
# cargo-deadlinks will check any links in docs generated by `cargo doc`.
|
||||
# This is useful as rustdoc uses raw links which are error prone.
|
||||
|
|
Loading…
Reference in New Issue