When everything fails, use perl.

This commit is contained in:
Mario Zechner 2021-08-18 21:02:32 +02:00
parent 6d960d5125
commit 11a801f855

View File

@ -11,7 +11,7 @@ jobs:
- name: Install OS dependencies (needed for act on ubuntu-latest) - name: Install OS dependencies (needed for act on ubuntu-latest)
run: | run: |
sudo apt update sudo apt update
sudo apt install -y --force-yes curl xz-utils libicu-dev git dos2unix sudo apt install -y --force-yes curl xz-utils libicu-dev git
git config --global core.autocrlf input git config --global core.autocrlf input
git config --global core.eol git config --global core.eol
@ -55,7 +55,7 @@ jobs:
export CLANGFORMAT=`pwd`/clang/bin/clang-format export CLANGFORMAT=`pwd`/clang/bin/clang-format
export PATH="$PATH:/root/.dotnet/tools" export PATH="$PATH:/root/.dotnet/tools"
./formatters/format.sh ./formatters/format.sh
find . -type f -name '*.cs' -exec dos2unix '{}' + find . -type f -name '*.cs' -exec perl -pi -e 's/\r\n/\n/g' '{}' +
git diff > format-diff.txt git diff > format-diff.txt
- run: spine-csharp/src/Atlas.cs - run: spine-csharp/src/Atlas.cs