From 83c8e1891e1e19a245cb20fc788ac3f53766ab94 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Mon, 23 May 2022 11:43:14 -0500 Subject: [PATCH] ci: github actions run with TERM=dumb and can't do tput commands (#13187) --- build-support/functions/00-vars.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-support/functions/00-vars.sh b/build-support/functions/00-vars.sh index c9af7c60b..a50aa3f23 100644 --- a/build-support/functions/00-vars.sh +++ b/build-support/functions/00-vars.sh @@ -6,7 +6,11 @@ UI_BUILD_CONTAINER_DEFAULT="consul-build-ui" GO_BUILD_CONTAINER_DEFAULT="consul-build-go" # Whether to colorize shell output -COLORIZE=${COLORIZE-1} +if tput reset &>/dev/null ; then + COLORIZE=${COLORIZE-1} +else + COLORIZE=0 +fi # determine GOPATH and the first GOPATH to use for installing binaries if command -v go >/dev/null; then