mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Add presubmit check for hyphens in filenames. (#1847)
No other fixes; this only adds the check.
This commit is contained in:
9
.presubmit/filename-hyphen
Executable file
9
.presubmit/filename-hyphen
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user