From 66a4357f3e001d02bbbb45fb247efaa2f505726d Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Wed, 14 Feb 2024 01:18:40 +0100 Subject: fix(common): ensure TERM is always set with a fallback to dumb This avoids some corner cases that some applications behave ill when TERM is completely unset. Instead, ensure we set TERM to dumb as a fallback, which should serve better than not having any term defined. Signed-off-by: Levente Polyak --- src/lib/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/common.sh b/src/lib/common.sh index 2d2d16f..ff767c6 100644 --- a/src/lib/common.sh +++ b/src/lib/common.sh @@ -31,6 +31,9 @@ export PACKAGING_REPO_RELEASE_HOST=repos.archlinux.org export PKGBASE_MAINTAINER_URL=https://archlinux.org/packages/pkgbase-maintainer export AUR_URL_SSH=aur@aur.archlinux.org +# ensure TERM is set with a fallback to dumb +export TERM=${TERM:-dumb} + # check if messages are to be printed using color if [[ -t 2 && "$TERM" != dumb ]] || [[ ${DEVTOOLS_COLOR} == always ]]; then colorize -- cgit v1.2.3-54-g00ecf