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>
This commit is contained in:
Đoàn Trần Công Danh 2020-04-08 11:05:34 +07:00 committed by Junio C Hamano
parent a3f2eec862
commit 855c158e81
1 changed files with 3 additions and 0 deletions

View File

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