mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
Improve precommit
This commit is contained in:
parent
90945d1621
commit
5968090f50
2 changed files with 13 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Linting staged files..."
|
||||
npm install
|
||||
npm install > /dev/null || exit 1
|
||||
|
||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
||||
[ -z "$FILES" ] && exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue