#10310 run yarn pre-commit only if static files changed

This commit is contained in:
Arthur 2022-09-09 15:17:59 -07:00
parent 333a95db4e
commit 3b63342bb9

View File

@ -40,7 +40,6 @@ if [ $? != 0 ]; then
EXIT=1
fi
echo "Checking UI ESLint, TypeScript, and Prettier compliance..."
git diff --cached --name-only | if grep --quiet 'netbox/project-static/'
then
echo "Checking UI ESLint, TypeScript, and Prettier compliance..."