set TERM to dumb if not set

This commit is contained in:
Siyuan Miao 2025-09-25 21:22:06 +00:00 committed by Siyuan
parent c9ad68a3ec
commit 01bc0e726c
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
# Exit immediately if a command exits with a non-zero status
set -e
TERM="${TERM:-dumb}"
C_RST="$(tput sgr0)"
C_ERR="$(tput setaf 1)"
C_OK="$(tput setaf 2)"