properly handle the case where there is no infocmp

This commit is contained in:
David Alexander Majnemer 2009-01-13 01:34:24 -06:00
parent 73028838e8
commit 6e08a71d69

View file

@ -32,7 +32,7 @@ fix_term ()
# sorta hacky, but I cannot find a better way to do this :/
fix_terminfo_db ()
{
if [ `command -v infocmp` = "$1/bin/infocmp" ] ; then
if [ `command -v infocmp 2>/dev/null` = "$1/bin/infocmp" ] ; then
TERMINFO="$1/share/terminfo"
export TERMINFO
fi