mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 23:52:22 +00:00
format.sh ran shfmt on hack/**/*.sh without enabling globstar, so ** only matched a single directory. Scripts directly in hack and in deeper directories like hack/dev/kernel were never formatted.
10 lines
218 B
Bash
Executable File
10 lines
218 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
# Without globstar, ** matches like *, so only scripts one directory deep are formatted.
|
|
shopt -s globstar
|
|
|
|
cd "$(dirname "${0}")/.." || exit 1
|
|
|
|
cargo fmt --all || true
|
|
shfmt -w hack/**/*.sh || true
|