We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
check_copyright.sh
1 parent a4ee260 commit e04f324Copy full SHA for e04f324
scripts/check_copyright.sh
@@ -27,10 +27,12 @@ list=$(git grep "${options[@]}" -- \
27
':(exclude)**/third_party/**')
28
29
# Allow copyrights before 2020 without LLC.
30
-result=$(grep -L 'Copyright 20[0-1][0-9].*Google' $list)
+if [[ $list ]]; then
31
+ result=$(grep -L 'Copyright 20[0-1][0-9].*Google' "$list")
32
+fi
33
34
if [[ $result ]]; then
- echo "$result"
- echo "ERROR: Missing copyright notices in the files above. Please fix."
35
- exit 1
+ echo "$result"
36
+ echo "ERROR: Missing copyright notices in the files above. Please fix."
37
+ exit 1
38
fi
0 commit comments