Skip to content

Commit c645019

Browse files
committed
The text may appear anywhere in the file.
1 parent 58ff763 commit c645019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goprecommit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ while read file; do
210210
continue
211211
fi
212212

213-
if [[ $( head -n1 "$file" | grep -c "^// Code generated by .* DO NOT EDIT\.$") = 1 ]]; then
213+
if [[ $( grep -c "^// Code generated by .* DO NOT EDIT\.$" "$file" ) = 1 ]]; then
214214
continue
215215
fi
216216

0 commit comments

Comments
 (0)