Skip to content

Commit c5240a9

Browse files
committed
Fix check-headers script
1 parent 175eab1 commit c5240a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check-headers.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

3-
files=$(find . -name \*.go -type f -print0 | xargs -0 egrep -L '(Licensed under the Apache License)|(Code generated from|by)')
3+
files=$(find . -name \*.go -type f -print0 | xargs -0 grep -L -E '(Licensed under the Apache License)|(Code generated (from|by))')
44
if [ -n "$files" ]; then
55
echo "Missing license header in:"
66
echo "$files"
77
exit 1
8-
fi
8+
fi

0 commit comments

Comments
 (0)