mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
If yarn bin not in $PATH, pre-commit hook always fails
This commit is contained in:
parent
ba00bd442d
commit
92bb93ae11
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ tslintUgly() {
|
|||
tmpfile="$tmpdir/$jsfile"
|
||||
mkdir -p "$(dirname "$tmpfile")"
|
||||
staged "$jsfile" > "$tmpfile"
|
||||
tslint -q "$tmpfile" 2>/dev/null || acc="$jsfile"$'\n'"$acc"
|
||||
"$(yarn bin)/tslint" -q "$tmpfile" 2>/dev/null || acc="$jsfile"$'\n'"$acc"
|
||||
done
|
||||
rm -rf "$tmpdir"
|
||||
echo "$acc"
|
||||
|
|
Loading…
Add table
Reference in a new issue