diff --git a/build/tools/check-trailing-space-windows.bat b/build/tools/check-trailing-space-windows.bat index 50a2c739f..962ab60a9 100644 --- a/build/tools/check-trailing-space-windows.bat +++ b/build/tools/check-trailing-space-windows.bat @@ -6,7 +6,7 @@ cd .. findstr -rsm -c:" $" * |findstr -rv "^.git" |findstr -rv ".exe$" > build\%OutTrailingSpaceListFile% cd build for %%R in (%OutTrailingSpaceListFile%) do if %%~zR gtr 0 goto :NeedFixTrailingSpace -rm %OutTrailingSpaceListFile% +del %OutTrailingSpaceListFile% goto :TrailingSpaceOkay :NeedFixTrailingSpace diff --git a/build/tools/normaliseAllFiles.ps1 b/build/tools/normaliseAllFiles.ps1 index 6cbb89322..a61b6e106 100644 --- a/build/tools/normaliseAllFiles.ps1 +++ b/build/tools/normaliseAllFiles.ps1 @@ -1,6 +1,6 @@ # If needed, first run: Set-ExecutionPolicy Unrestricted -$allFiles = (Get-ChildItem -Path ..\..\ -Include *.js,*.css,*.bat -Recurse) +$allFiles = (Get-ChildItem -Path ..\..\ -Include *.js,*.css,*.bat,*.html -Recurse) $allFiles | %{ # Read file, remove trailing spaces/tabs, output back to file in CP1252 format (default for Git on Windows)