fix: update Rust installation check to use executable path for cargo
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -e
|
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
|
curl -fsSL https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
||||||
fi
|
fi
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user