@@ -89,9 +89,11 @@ output=$(cd "$ROOT" && find . -type f \
8989! -path " **/*.egg-info/*" \
9090! -path " ./test/*" \
9191! -path " ./dev/config/*" \
92- ! -path " . /bin/*" \
92+ ! -path " ** /bin/*" \
9393! -path " ./.circleci/*" \
9494! -path " ./.git/*" \
95+ ! -path " ./pkg/crds/config/*" \
96+ ! -path " **/tmp/*" \
9597! -name LICENSE \
9698! -name " *requirements.txt" \
9799! -name " go.*" \
@@ -100,6 +102,7 @@ output=$(cd "$ROOT" && find . -type f \
100102! -name " .*" \
101103! -name " *.bin" \
102104! -name " Dockerfile" \
105+ ! -name " PROJECT" \
103106-exec grep -L " Copyright 2021 Cortex Labs, Inc" {} \; )
104107if [[ $output ]]; then
105108 echo " File(s) are missing Cortex license:"
@@ -119,7 +122,7 @@ if [ "$is_release_branch" = "true" ]; then
119122 ! -path " **/.pytest_cache/*" \
120123 ! -path " **/*.egg-info/*" \
121124 ! -path " ./dev/config/*" \
122- ! -path " . /bin/*" \
125+ ! -path " ** /bin/*" \
123126 ! -path " ./.git/*" \
124127 ! -name " .*" \
125128 ! -name " *.bin" \
@@ -142,8 +145,9 @@ output=$(cd "$ROOT" && find . -type f \
142145! -path " **/.pytest_cache/*" \
143146! -path " **/*.egg-info/*" \
144147! -path " ./dev/config/*" \
145- ! -path " . /bin/*" \
148+ ! -path " ** /bin/*" \
146149! -path " ./.git/*" \
150+ ! -path " ./pkg/crds/config/*" \
147151! -name " .*" \
148152! -name " *.bin" \
149153! -name " *.wav" \
@@ -164,7 +168,8 @@ output=$(cd "$ROOT" && find . -type f \
164168! -path " **/.pytest_cache/*" \
165169! -path " **/*.egg-info/*" \
166170! -path " ./dev/config/*" \
167- ! -path " ./bin/*" \
171+ ! -path " ./pkg/crds/config/*" \
172+ ! -path " **/bin/*" \
168173! -path " ./.git/*" \
169174! -name " .*" \
170175! -name " *.bin" \
@@ -187,7 +192,7 @@ output=$(cd "$ROOT" && find . -type f \
187192! -path " **/.pytest_cache/*" \
188193! -path " **/*.egg-info/*" \
189194! -path " ./dev/config/*" \
190- ! -path " . /bin/*" \
195+ ! -path " ** /bin/*" \
191196! -path " ./.git/*" \
192197! -name " .*" \
193198! -name " *.bin" \
@@ -209,11 +214,13 @@ output=$(cd "$ROOT" && find . -type f \
209214! -path " **/.pytest_cache/*" \
210215! -path " **/*.egg-info/*" \
211216! -path " ./dev/config/*" \
217+ ! -path " ./pkg/crds/config/*" \
212218! -path " ./bin/*" \
213219! -path " ./.git/*" \
214220! -name " .*" \
215221! -name " *.bin" \
216222! -name " *.wav" \
223+ ! -name " boilerplate.go.txt" \
217224-print0 | \
218225xargs -0 -L1 bash -c ' test "$(head -c 1 "$0")" || [ ! -s "$0" ] || echo "New line at beginning of $0"' || true)
219226if [[ $output ]]; then
0 commit comments