Safer cargo command (#9437)
This commit is contained in:
parent
aa8dfac313
commit
6e1ce5ab6c
|
@ -36,7 +36,12 @@ download() {
|
|||
# Install xargo
|
||||
(
|
||||
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
|
||||
)
|
||||
# shellcheck disable=SC2181
|
||||
|
|
Loading…
Reference in New Issue