Просмотр исходного кода

Merge pull request #12639 from liamwhite/format-oops

ci: fix format task
Charles Lombardo 2 лет назад
Родитель
Сommit
6533dfd7ce
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      .ci/scripts/format/script.sh

+ 1 - 2
.ci/scripts/format/script.sh

@@ -5,8 +5,7 @@
 
 
 shopt -s nullglob globstar
 shopt -s nullglob globstar
 
 
-if grep -nrI '\s$' src **/*.yml **/*.txt **/*.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \
-                 dist/*.svg dist/*.xml; then
+if git grep -nrI '\s$' src **/*.yml **/*.txt **/*.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop dist/*.svg dist/*.xml; then
     echo Trailing whitespace found, aborting
     echo Trailing whitespace found, aborting
     exit 1
     exit 1
 fi
 fi