]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci/lib: set TERM environment variable if not exist
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Wed, 8 Apr 2020 04:05:34 +0000 (11:05 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Apr 2020 05:17:10 +0000 (22:17 -0700)
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>
ci/lib.sh

index f92e3a5211d2bcd4b4f35a96dfbc94781ed5cc45..40b159e24d56f1db17eb4ca1c2de294226f0575e 100755 (executable)
--- 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=