Skip to content

Commit

Permalink
see #1711: fix pre-commit hook referencing a non existant file
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Oct 20, 2023
1 parent 278b9b5 commit e37967d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

FILES=$(git diff --cached --diff-filter=d --name-only | grep '^src/.*.php$' | tr '\n' ' ')

echo "$FILES"

if [ -n "$FILES" ]; then
echo "** Cleanup **"
# shellcheck disable=SC2086
Expand Down

0 comments on commit e37967d

Please sign in to comment.