Browse Source

Style workflow: fix file finding with different extensions

1vanK 3 years ago
parent
commit
2e805a6868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/style.yml

+ 1 - 1
.github/workflows/style.yml

@@ -30,7 +30,7 @@ jobs:
         do
           git clone https://github.com/${{ github.repository }} engine_repo
           cd engine_repo
-          find ./bin -name '*.glsl' -or -name '*.hlsl' -or -name '*.xml' -exec perl -i -pe 's/[ \t]+(\r?\n)/$1/g' {} +
+          find ./bin -type f \( -name '*.glsl' -or -name '*.hlsl' -or -name '*.xml' \) -exec perl -i -pe 's/[ \t]+(\r?\n)/$1/g' {} +
           find ./cmake -type f -exec perl -i -pe 's/[ \t]+(\r?\n)/$1/g' {} +
           find ./Source/Urho3D -type f -exec perl -i -pe 's/[ \t]+(\r?\n)/$1/g' {} +
           git add -A