2025-10-24 20:09:32 -07:00
|
|
|
#!/bin/bash
|
2025-10-01 16:45:04 -07:00
|
|
|
set -e
|
2026-09-26 20:24:56 -07:00
|
|
|
# Without globstar, ** matches like *, so only scripts one directory deep are formatted.
|
|
|
|
|
shopt -s globstar
|
2025-10-01 16:45:04 -07:00
|
|
|
|
|
|
|
|
cd "$(dirname "${0}")/.." || exit 1
|
|
|
|
|
|
2025-10-24 20:08:46 -07:00
|
|
|
cargo fmt --all || true
|
|
|
|
|
shfmt -w hack/**/*.sh || true
|