3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Check for illegal characters in filename
9 # Skip check if git isn't available
10 if [ -n "$(command -v git)" ] && \
11 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
13 git ls-files |
grep "[^A-Za-z0-9/_\.-]"