mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 19:58:41 +00:00
11 lines
202 B
Bash
11 lines
202 B
Bash
#!/bin/bash
|
|
|
|
isValidFileName() {
|
|
if 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
|
|
} |