Преглед на файлове

Add an exception for thirdparty subdirectories in file_format.sh

This exception is also present in clang_format.sh and is needed in some
cases.

(cherry picked from commit 10eaf0c52bcec565df46a90ceeebe59d52c8cbff)
Riteo Siuga преди 2 години
родител
ревизия
06920544b8
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      misc/scripts/file_format.sh

+ 3 - 1
misc/scripts/file_format.sh

@@ -28,7 +28,9 @@ while IFS= read -rd '' f; do
         continue
     elif [[ "$f" == *"po" ]]; then
         continue
-    elif [[ "$f" == "thirdparty"* ]]; then
+    elif [[ "$f" == "thirdparty/"* ]]; then
+        continue
+    elif [[ "$f" == *"/thirdparty/"* ]]; then
         continue
     elif [[ "$f" == "platform/android/java/lib/src/com/google"* ]]; then
         continue