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 33bf8f2f02
commit f3c06c3a55

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