Martin Roth | 0ad5fbd | 2020-12-24 12:06:38 -0700 | [diff] [blame] | 1 | #!/usr/bin/env sh |
Martin Roth | e99a718 | 2018-06-06 21:34:47 -0600 | [diff] [blame] | 2 | # |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
Martin Roth | e99a718 | 2018-06-06 21:34:47 -0600 | [diff] [blame] | 5 | # DESCR: Check for illegal characters in filename |
| 6 | |
Martin Roth | d81debd | 2022-06-03 00:06:57 -0600 | [diff] [blame] | 7 | LINTDIR="$( |
| 8 | cd -- "$(dirname "$0")" > /dev/null 2>&1 || return |
| 9 | pwd -P |
| 10 | )" |
Martin Roth | e99a718 | 2018-06-06 21:34:47 -0600 | [diff] [blame] | 11 | |
Martin Roth | d81debd | 2022-06-03 00:06:57 -0600 | [diff] [blame] | 12 | # shellcheck source=helper_functions.sh |
| 13 | . "${LINTDIR}/helper_functions.sh" |
| 14 | |
| 15 | # Exit if the code isn't in a git repo |
| 16 | if [ "${IN_GIT_TREE}" -eq 0 ]; then |
| 17 | exit 0 |
Martin Roth | e99a718 | 2018-06-06 21:34:47 -0600 | [diff] [blame] | 18 | fi |
Martin Roth | d81debd | 2022-06-03 00:06:57 -0600 | [diff] [blame] | 19 | |
| 20 | ${FIND_FILES} | grep "[^A-Za-z0-9/_\.-]" |