[answerback] only exec if we are ssh'd

This commit is contained in:
David Alexander Majnemer 2010-10-28 14:13:57 -05:00
parent 0cbb34a92a
commit 43d560cf0f

View file

@ -70,7 +70,7 @@ if command -v infocmp >/dev/null 2>&1 ; then
if [ "${COLORTERM}" = "gnome-terminal" ] ; then
TERM="xterm-256color"
fi
else
elif [ -n "${SSH_TTY}" ] ; then
answerback_cmd="answerback.`uname -s`"
if command -v ${answerback_cmd} >/dev/null 2>&1 ; then
ANSWERBACK=`${answerback_cmd} 2>/dev/null`