ci: github actions run with TERM=dumb and can't do tput commands (#13187)

This commit is contained in:
R.B. Boyer 2022-05-23 11:43:14 -05:00 committed by GitHub
parent dc4867dd6c
commit 83c8e1891e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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