WIP: Switch to NixOS #5
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ echo "FunctionalHacker's dotfile pre-commit hook start"
|
||||||
printf "Using shell: %s \n" "$(readlink /proc/$$/exe)"
|
printf "Using shell: %s \n" "$(readlink /proc/$$/exe)"
|
||||||
|
|
||||||
# All staged files
|
# All staged files
|
||||||
staged_files=$(git diff --name-only --cached)
|
staged_files=$(git diff --name-only --cached --diff-filter=d)
|
||||||
|
|
||||||
# Run taplo on staged TOML files
|
# Run taplo on staged TOML files
|
||||||
staged_toml=$(echo "$staged_files" | grep '.toml$' || true)
|
staged_toml=$(echo "$staged_files" | grep '.toml$' || true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue