blob: b864ab9866438587609e810a77cd2f8e007a5ec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# This file is part of the coreboot project.
#
# 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
|