Files
coredns/.presubmit/filename-hyphen
Miek Gieben 3994d3a5a7 Add presubmit check for hyphens in filenames. (#1847)
No other fixes; this only adds the check.
2018-06-01 13:25:36 -07:00

10 lines
217 B
Bash
Executable File

#!/bin/bash
echo "** presubmit/$(basename $0)"
for dir in "$@"; do
if find $dir | grep '-'; then
echo "** presubmit/$(basename $0): please use an underscore in filenames instead of a hyphen"
fi
done