diff --git a/tests/scripts/git-hooks/pre-push b/tests/scripts/git-hooks/pre-push index 847ef7f346..4441109149 100755 --- a/tests/scripts/git-hooks/pre-push +++ b/tests/scripts/git-hooks/pre-push @@ -42,7 +42,7 @@ do fi # Run coding standards check over modified files. - modified_files=`git diff --diff-filter=d --name-only "$range"` + modified_files=$(git diff --diff-filter=d --name-only "$range" | grep -v '\.\(jpg\|jpeg\|png\|gif\|bmp\|svg\|webp\)$') if [ -n "$modified_files" ] then $composer phpcs $modified_files