Files
RedBear-OS/fmt.sh
T
2024-07-19 21:47:47 +02:00

26 lines
433 B
Bash
Executable File

#!/usr/bin/bash
set -eo pipefail
function fmt() {
for dir in "$@"
do
pushd $dir
printf "\e[1;32mFormatting\e[0m $dir\n"
if [[ "$CHECK_ONLY" -eq "1" ]]; then
cargo fmt --check
else
cargo fmt
fi
popd
done
}
fmt graphics/bgad \
graphics/fbcond \
graphics/vesad \
graphics/virtio-gpud \
inputd \
net/virtio-netd \
virtio-core