Skip to content

Commit

Permalink
Safer cargo command (#9437) (#9440)
Browse files Browse the repository at this point in the history
automerge
  • Loading branch information
mergify[bot] authored Apr 10, 2020
1 parent 310aa1a commit 967c178
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/bpf/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 967c178

Please sign in to comment.