7 lines
154 B
Bash
Executable File
7 lines
154 B
Bash
Executable File
#!/usr/bin/env bash
|
|
nix fmt .
|
|
git diff --exit-code || {
|
|
echo "Formatter changed files — review with 'git diff', then re-stage and commit."
|
|
exit 1
|
|
}
|