mirror of
https://github.com/github/gitignore.git
synced 2026-11-14 13:51:51 +01:00
Reduce dos2unix log noise while preserving failure diagnostics
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
850bb5152c
commit
bebe9094f0
1 file changed
+4
-1
@@ -46,7 +46,10 @@ jobs:
|
||||
echo "Checking ${#files[@]} gitignore files."
|
||||
|
||||
status=0
|
||||
dos2unix --keep-bom -- "${files[@]}" || status=1
|
||||
if ! dos2unix --keep-bom -- "${files[@]}" > "$RUNNER_TEMP/dos2unix.log" 2>&1; then
|
||||
cat "$RUNNER_TEMP/dos2unix.log" >&2
|
||||
status=1
|
||||
fi
|
||||
trailing-whitespace-fixer -- "${files[@]}" || status=1
|
||||
end-of-file-fixer -- "${files[@]}" || status=1
|
||||
|
||||
|
||||
Reference in new issue
Block a user