[autogen.sh] Tolerate tput failure (#12757)

(cherry picked from commit 189feaf352)
This commit is contained in:
Chris Heath 2007-10-15 17:31:50 -04:00 committed by Carl Worth
parent 198dc3573f
commit 2e76f8b617

View file

@ -49,8 +49,8 @@ esac
# some terminal codes ...
boldface="`tput bold 2>/dev/null`"
normal="`tput sgr0 2>/dev/null`"
boldface="`tput bold 2>/dev/null || true`"
normal="`tput sgr0 2>/dev/null || true`"
printbold() {
echo $ECHO_N "$boldface"
echo "$@"