mirror of
https://github.com/esp-rs/espflash.git
synced 2026-03-10 07:40:38 +00:00
12 lines
462 B
Bash
Executable File
12 lines
462 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Exit immediately on first non-zero status from a command in the script.
|
|
set -o errexit
|
|
|
|
# Ensure all tools being used are available.
|
|
command -v "cargo" >/dev/null 2>&1 || { echo >&2 "The 'cargo' command is not installed, exiting"; exit 1; }
|
|
command -v "rustfmt" >/dev/null 2>&1 || { echo >&2 "The 'rustfmt' command is not installed, exiting"; exit 1; }
|
|
|
|
# Check the formatting of all Rust code in the workspace.
|
|
cargo fmt --all -- --check
|