blob: 8b519a80dd35d46ee5ea082288534132ba31988a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env sh
#
# SPDX-License-Identifier: GPL-2.0-only
# DESCR: Check for illegal characters in filename
LC_ALL=C export LC_ALL
# Skip check if git isn't available
if [ -n "$(command -v git)" ] && \
[ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
then
git ls-files | grep "[^A-Za-z0-9/_\.-]"
fi
|