Build/Hooks/filename.sh
2018-08-11 11:56:24 +02:00

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
}