Skip to content

Commit 855c158

Browse files
sgngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a3f2eec commit 855c158

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/lib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ check_unignored_build_artifacts ()
7979
}
8080
}
8181

82+
# GitHub Action doesn't set TERM, which is required by tput
83+
export TERM=${TERM:-dumb}
84+
8285
# Clear MAKEFLAGS that may come from the outside world.
8386
export MAKEFLAGS=
8487

0 commit comments

Comments
 (0)