Keep line breaks in list of files formatting

This commit is contained in:
Owen Mansel-Chan
2023-10-04 10:23:29 +01:00
parent 5433636d49
commit 567052f35e

View File

@@ -35,7 +35,7 @@ check-formatting:
@output=$$(find . -path '**/vendor' -prune -or -type f -iname '*.go' ! -empty -print0 | xargs -0 grep -L "//\s*autoformat-ignore" | xargs gofmt -l 2>&1); \
if [ -n "$$output" ]; then \
echo "The following files need to be reformatted using gofmt:"; \
echo $$output; \
echo "$$output"; \
fi; \
test -z "$$output"