Merge pull request #10613 from qzhuyan/chore/william/dont-fail-commit-without-mix

chore(git-hook): don't fail commit hook when no mix
This commit is contained in:
William Yang 2023-05-05 17:46:53 +02:00 committed by GitHub
commit ef1a2c5d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ set -euo pipefail
OPT="${1:--c}"
# mix format check is quite fast
mix format --check-formatted
which mix && mix format --check-formatted
files_dirty="$(git diff --name-only | grep -E '.*\.erl' || true)"
files_cached="$(git diff --cached --name-only | grep -E '.*\.erl' || true)"