From 10eaf0c52bcec565df46a90ceeebe59d52c8cbff Mon Sep 17 00:00:00 2001 From: Riteo Siuga Date: Sun, 13 Nov 2022 00:46:13 +0100 Subject: 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. --- misc/scripts/file_format.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc/scripts') diff --git a/misc/scripts/file_format.sh b/misc/scripts/file_format.sh index 1200b96ea0..a2f33692f9 100755 --- a/misc/scripts/file_format.sh +++ b/misc/scripts/file_format.sh @@ -31,7 +31,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 -- cgit v1.2.3