fix: update Rust installation check to use executable path for cargo
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -e
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
if [ ! -x "$HOME/.cargo/bin/cargo" ]; then
|
||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
||||
fi
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
Reference in New Issue
Block a user