updated boot settings

update pre-commit hook
This commit is contained in:
Gerg-L 2023-08-02 18:10:06 -04:00
parent 4b19b9f711
commit c8d102b945
6 changed files with 10 additions and 47 deletions

View file

@ -1,13 +1,13 @@
#!/usr/bin/env bash
STAGED="$(git diff --name-only --cached | grep "**.nix" | tr '\n' ' ')"
STAGED="$(git diff --name-only --cached --diff-filter=d | grep "**.nix" | tr '\n' ' ')"
if [ -z "$STAGED" ]; then
exit 0
fi
for i in $STAGED; do
statix fix -- "$i"
statix fix -- "$i"
done
deadnix -qe $STAGED