mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
updated boot settings
update pre-commit hook
This commit is contained in:
parent
4b19b9f711
commit
c8d102b945
6 changed files with 10 additions and 47 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue