nix-config/.hooks/pre-commit

11 lines
94 B
Bash
Executable file

#!/usr/bin/env bash
git stash -q --keep-index
./lint.sh
RESULT=$?
git add -u
exit $RESULT