Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 967c178

Browse files
authored
Safer cargo command (#9437) (#9440)
automerge
1 parent 310aa1a commit 967c178

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sdk/bpf/scripts/install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ download() {
3636
# Install xargo
3737
(
3838
set -ex
39-
cargo +"${rust_stable:-}" install xargo
39+
# shellcheck disable=SC2154
40+
if [[ -n $rust_stable ]]; then
41+
cargo +"$rust_stable" install xargo
42+
else
43+
cargo install xargo
44+
fi
4045
xargo --version > xargo.md 2>&1
4146
)
4247
# shellcheck disable=SC2181

0 commit comments

Comments
 (0)