From f18260f229b68ebda4a39a3b4133c0f36de7ce8d Mon Sep 17 00:00:00 2001
From: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Date: Thu, 25 Jul 2024 12:51:41 -0400
Subject: [PATCH] [Infra] Update check_copyright.sh to ignore root
 `third_party` directories (#13403)

---
 scripts/check_copyright.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/check_copyright.sh b/scripts/check_copyright.sh
index d6dcfd5e148..8ccc634c5c7 100755
--- a/scripts/check_copyright.sh
+++ b/scripts/check_copyright.sh
@@ -24,6 +24,7 @@ options=(
 list=$(git grep "${options[@]}" -- \
     '*.'{c,cc,cmake,h,js,m,mm,py,rb,sh,swift} \
     CMakeLists.txt '**/CMakeLists.txt' \
+    ':(exclude)third_party/**' \
     ':(exclude)**/third_party/**')
 
 # Allow copyrights before 2020 without LLC.