fix: term capability code may not be available

This commit is contained in:
soyuka
2024-10-16 14:23:26 +02:00
committed by Kévin Dunglas
parent 334139ca2b
commit cda74730ae

View File

@@ -13,9 +13,9 @@ OS=$(uname -s)
ARCH=$(uname -m)
if type "tput" >/dev/null 2>&1; then
bold=$(tput bold)
italic=$(tput sitm)
normal=$(tput sgr0)
bold=$(tput bold || true)
italic=$(tput sitm || true)
normal=$(tput sgr0 || true)
fi
case ${OS} in