CI: improve reporting for line endings check

This commit is contained in:
0penBrain
2023-02-16 11:14:45 +01:00
committed by Chris Hennes
parent c1631e0d03
commit 551e70f3bb

View File

@@ -214,7 +214,8 @@ jobs:
# Check for DOS or MAC line endings
if [[ $(file -b $file) =~ "with CR" ]]
then
echo "::warning file=$file::File has non Unix line endings" | tee -a ${{ env.logdir }}lineendings.log
echo "::warning file=$file,title=$file::File has non Unix line endings"
echo "$file has non Unix line endings" >> ${{ env.logdir }}lineendings.log
((lineendings=lineendings+1))
fi
done