Skip to content

Commit 89e54b3

Browse files
committed
use printf for diff output
1 parent 279544c commit 89e54b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fmt-check: fmt
255255
@diff=$$(git diff --color=always $(GO_SOURCES) templates $(WEB_DIRS)); \
256256
if [ -n "$$diff" ]; then \
257257
echo "Please run 'make fmt' and commit the result:"; \
258-
echo "$${diff}"; \
258+
printf "%s" "$${diff}"; \
259259
exit 1; \
260260
fi
261261

@@ -281,7 +281,7 @@ swagger-check: generate-swagger
281281
@diff=$$(git diff --color=always '$(SWAGGER_SPEC)'); \
282282
if [ -n "$$diff" ]; then \
283283
echo "Please run 'make generate-swagger' and commit the result:"; \
284-
echo "$${diff}"; \
284+
printf "%s" "$${diff}"; \
285285
exit 1; \
286286
fi
287287

@@ -426,7 +426,7 @@ test-check:
426426
@diff=$$(git status -s); \
427427
if [ -n "$$diff" ]; then \
428428
echo "make test-backend has changed files in the source tree:"; \
429-
echo "$${diff}"; \
429+
printf "%s" "$${diff}"; \
430430
echo "You should change the tests to create these files in a temporary directory."; \
431431
echo "Do not simply add these files to .gitignore"; \
432432
exit 1; \
@@ -879,7 +879,7 @@ svg-check: svg
879879
@diff=$$(git diff --color=always --cached $(SVG_DEST_DIR)); \
880880
if [ -n "$$diff" ]; then \
881881
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
882-
echo "$${diff}"; \
882+
printf "%s" "$${diff}"; \
883883
exit 1; \
884884
fi
885885

@@ -890,7 +890,7 @@ lockfile-check:
890890
if [ -n "$$diff" ]; then \
891891
echo "package-lock.json is inconsistent with package.json"; \
892892
echo "Please run 'npm install --package-lock-only' and commit the result:"; \
893-
echo "$${diff}"; \
893+
printf "%s" "$${diff}"; \
894894
exit 1; \
895895
fi
896896

0 commit comments

Comments
 (0)