From db7b7c519454428a1e93dc7f545ebff737351a52 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 12 Apr 2018 10:14:08 +0200 Subject: [PATCH] quiet.mk: Fix newline generation in error message Not all echo implementations support escape characters and newline insertion. Make sure quiet.mk does not use escape characters to generate newlines and instead split the output over multiple echo commands to get the same effect. Signed-off-by: Lars-Peter Clausen --- quiet.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quiet.mk b/quiet.mk index 4f804f6dd..051d66f99 100644 --- a/quiet.mk +++ b/quiet.mk @@ -28,7 +28,9 @@ ifneq ($(VERBOSE),1) (ERR=$$?; if [ $$ERR = 0 ]; then \ echo " $(GREEN)OK$(NC)"; \ else \ - echo " $(RED)FAILED$(NC)\nFor details see $(HL)$(CURDIR)/$(strip $(2))$(NC)\n"; \ + echo " $(RED)FAILED$(NC)"; \ + echo "For details see $(HL)$(CURDIR)/$(strip $(2))$(NC)"; \ + echo ""; \ fi; exit $$ERR) endef