From 6e08a71d6923741e9a4d70d256c71c51de477a3d Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Tue, 13 Jan 2009 01:34:24 -0600 Subject: [PATCH] properly handle the case where there is no infocmp --- commonsh/02_term | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commonsh/02_term b/commonsh/02_term index df6ed0c..b6284ca 100755 --- a/commonsh/02_term +++ b/commonsh/02_term @@ -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