Safer cargo command (#9437) (#9440)

automerge
This commit is contained in:
mergify[bot]
2020-04-10 16:54:33 -07:00
committed by GitHub
parent 310aa1a63f
commit 967c178f5d

View File

@ -36,7 +36,12 @@ download() {
# Install xargo # Install xargo
( (
set -ex set -ex
cargo +"${rust_stable:-}" install xargo # shellcheck disable=SC2154
if [[ -n $rust_stable ]]; then
cargo +"$rust_stable" install xargo
else
cargo install xargo
fi
xargo --version > xargo.md 2>&1 xargo --version > xargo.md 2>&1
) )
# shellcheck disable=SC2181 # shellcheck disable=SC2181