Skip to content

Commit

Permalink
Add check for Cargo installation in bootstrap script
Browse files Browse the repository at this point in the history
  • Loading branch information
joaolago1113 committed Jan 30, 2024
1 parent 2d93169 commit 72c9610
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/bootstrap_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ else
export GIT_COMMIT=$(git rev-parse --verify HEAD)
fi

# Check if the 'cargo' command is available in the system
if ! command -v cargo > /dev/null; then
echo "Cargo is not installed. Please install Cargo and the Rust toolchain."
exit 1
fi

# Build native.
if [ -n "${DEBUG:-}" ]; then
cargo build
Expand Down

0 comments on commit 72c9610

Please sign in to comment.