mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-29 11:18:39 +00:00
14 lines
269 B
Bash
14 lines
269 B
Bash
#!/bin/bash
|
|
|
|
isValidFileName() {
|
|
allownonascii="false"
|
|
|
|
if [ "$allownonascii" != "true" ] &&
|
|
test $(git diff --cached --name-only --diff-filter=A -z $1 |
|
|
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
|
|
then
|
|
return 0
|
|
fi
|
|
|
|
return 1
|
|
} |