summaryrefslogtreecommitdiffstats
path: root/package/pkg-utils.mk
diff options
context:
space:
mode:
authorJames Knight <james.d.knight@live.com>2016-02-21 11:04:58 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 18:30:09 +0100
commit2406955bce3e6371b5ebb3faac65d1aca9d3e108 (patch)
treed50c007d447417aa079c837654eb426f8bc12d50 /package/pkg-utils.mk
parent9d519412d65e13e4a7ffbb83edd8d1e4b2dfe4b7 (diff)
downloadbuildroot-2406955bce3e6371b5ebb3faac65d1aca9d3e108.tar.gz
buildroot-2406955bce3e6371b5ebb3faac65d1aca9d3e108.zip
pkg-utils: mask tput failure for non-interactive sessions
When invoking a build from a non-interactive session (for example, a Jenkins build), there is no terminal session to modify. When preparing variables to track the bold and boldoff mode sequences, the `tput` command will always fail as there is no terminal to query. The following change masks the error message when `tput` fails; leaving the TERM_BOLD and TERM_RESET variables empty. Signed-off-by: James Knight <james.d.knight@live.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-utils.mk')
-rw-r--r--package/pkg-utils.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk
index 44bd2c9305..f88313ab53 100644
--- a/package/pkg-utils.mk
+++ b/package/pkg-utils.mk
@@ -84,8 +84,8 @@ suitable-extractor = $(INFLATE$(suffix $(1)))
# MESSAGE Macro -- display a message in bold type
MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(call qstrip,$(1))$(TERM_RESET)"
-TERM_BOLD := $(shell tput smso)
-TERM_RESET := $(shell tput rmso)
+TERM_BOLD := $(shell tput smso 2>/dev/null)
+TERM_RESET := $(shell tput rmso 2>/dev/null)
# Utility functions for 'find'
# findfileclauses(filelist) => -name 'X' -o -name 'Y'
OpenPOWER on IntegriCloud