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

This commit is contained in:
Chris Heath 2007-10-15 17:31:50 -04:00 committed by Behdad Esfahbod
parent 4660561cb5
commit 189feaf352

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 "$@"