From cf1c0c03b4654aa0a649155f12a86989d3adb2d0 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Wed, 17 Apr 2019 06:16:13 +0200
Subject: [PATCH] clang_format_paths: also retab shell scripts

---
 utils_maintenance/clang_format_paths.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/utils_maintenance/clang_format_paths.py b/utils_maintenance/clang_format_paths.py
index 91d9892..967eecd 100755
--- a/utils_maintenance/clang_format_paths.py
+++ b/utils_maintenance/clang_format_paths.py
@@ -19,9 +19,10 @@ extensions = (
     ".osl", ".glsl",
 )
 
-extensions_cmake = (
+extensions_only_retab = (
     ".cmake",
     "CMakeLists.txt",
+    ".sh",
 )
 
 ignore_files = {
@@ -175,14 +176,14 @@ def main():
     ]
 
     # Always operate on all cmake files (when expanding tabs and no paths given).
-    files_cmake = [
+    files_retab = [
         f for f in source_files_from_git("." if use_default_paths else paths)
-        if f.endswith(extensions_cmake)
+        if f.endswith(extensions_only_retab)
         if f not in ignore_files
     ]
 
     if args.expand_tabs:
-        convert_tabs_to_spaces(files + files_cmake)
+        convert_tabs_to_spaces(files + files_retab)
     clang_format(files)
 
 
-- 
GitLab