Skip to content

Commit

Permalink
make TERM=ansi in case of non-interactive calls
Browse files Browse the repository at this point in the history
Signed-off-by: WANG Xuerui <[email protected]>
  • Loading branch information
xen0n committed Sep 20, 2024
1 parent 101da2b commit 23978ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ rootfs_image_tag() {
# CLI output helpers
#

if [[ -z $TERM || $TERM == dumb ]]; then
TERM=ansi
fi
export TERM

declare -A _TERM_SEQ_MAP=(
["reset"]="$(tput sgr0)"
["bold"]="$(tput bold)"
Expand Down

0 comments on commit 23978ac

Please sign in to comment.