Skip to content

Commit 4dc0d65

Browse files
committed
Check command -v cargo
1 parent c1f09f3 commit 4dc0d65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xtask/templates/install-command.bash.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tar xvf "/tmp/rust-$rust_version-x86_64-unknown-linux-gnu.tar.gz" -C /tmp
1010
sudo "/tmp/rust-$rust_version-x86_64-unknown-linux-gnu/install.sh"
1111

1212
cargo -vV
13+
[ "$(command -v cargo)" = /usr/local/bin/cargo ]
1314
[ "$(cargo -vV | sed -n 's/release: \(.*\)/\1/p')" = "$rust_version" ]
1415
[ "$(cargo -vV | sed -n 's/host: \(.*\)/\1/p')" = x86_64-unknown-linux-gnu ]
1516

0 commit comments

Comments
 (0)