From 855c158e81d9a39663047c36fe9573a3908d8209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 8 Apr 2020 11:05:34 +0700 Subject: ci/lib: set TERM environment variable if not exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Action doesn't set TERM environment variable, which is required by "tput". Fallback to dumb if it's not set. Signed-off-by: Đoàn Trần Công Danh Signed-off-by: Junio C Hamano --- ci/lib.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ci') diff --git a/ci/lib.sh b/ci/lib.sh index f92e3a5211..40b159e24d 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -79,6 +79,9 @@ check_unignored_build_artifacts () } } +# GitHub Action doesn't set TERM, which is required by tput +export TERM=${TERM:-dumb} + # Clear MAKEFLAGS that may come from the outside world. export MAKEFLAGS= -- cgit v1.2.3