summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorLibravatar Đoàn Trần Công Danh <congdanhqx@gmail.com>2020-04-08 11:05:34 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-07 22:17:10 -0700
commit855c158e81d9a39663047c36fe9573a3908d8209 (patch)
treef2f3ede3d08abd608977e724f8c94ed9390ab311 /ci
parentci/lib: allow running in GitHub Actions (diff)
downloadtgif-855c158e81d9a39663047c36fe9573a3908d8209.tar.xz
ci/lib: set TERM environment variable if not exist
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 <congdanhqx@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/lib.sh3
1 files changed, 3 insertions, 0 deletions
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=