Build/Hooks/filename.sh
2019-03-16 18:59:44 +00:00

13 lines
228 B
Bash
Executable File

#!/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
echo 0
return 0
fi
echo 1
return 1
}