Files
sprout/hack/autofix.sh

18 lines
419 B
Bash
Raw Normal View History

2025-10-01 16:45:04 -07:00
#!/bin/sh
set -e
cd "$(dirname "${0}")/.." || exit 1
NATIVE_ARCH="$(uname -m)"
[ "${NATIVE_ARCH}" = "arm64" ] && NATIVE_ARCH="aarch64"
[ "${NATIVE_ARCH}" = "amd64" ] && NATIVE_ARCH="x86_64"
if [ "$(uname)" != "Linux" ]; then
cargo clippy --workspace --fix --allow-dirty --allow-staged \
--target "${NATIVE_ARCH}-unknown-uefi"
else
cargo clippy --workspace --fix --allow-dirty --allow-staged
fi
./hack/format.sh