We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 175eab1 commit c5240a9Copy full SHA for c5240a9
check-headers.sh
@@ -1,8 +1,8 @@
1
#!/bin/sh
2
3
-files=$(find . -name \*.go -type f -print0 | xargs -0 egrep -L '(Licensed under the Apache License)|(Code generated from|by)')
+files=$(find . -name \*.go -type f -print0 | xargs -0 grep -L -E '(Licensed under the Apache License)|(Code generated (from|by))')
4
if [ -n "$files" ]; then
5
echo "Missing license header in:"
6
echo "$files"
7
exit 1
8
-fi
+fi
0 commit comments