roll-all: Fix args for GNU find(1)
Change-Id: I004581a42df5bd719819da36f8222b3cd0de8e7f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34006
Auto-Submit: David Neto <dneto@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
diff --git a/tools/roll-all b/tools/roll-all
index 1e329ab..36868fa 100755
--- a/tools/roll-all
+++ b/tools/roll-all
@@ -36,7 +36,7 @@
old_head=$(git rev-parse HEAD)
-for i in $(find third_party -type d -maxdepth 1 -depth 1); do
+for i in $(find third_party -maxdepth 1 -mindepth 1 -type d); do
name=`echo "${i%%/}" | cut -f2 -d'/' | tr '-' '_'`
if [ "x${name}" == "xcpplint" ]; then