Skip to content

Commit

Permalink
[answerback] only exec if we are ssh'd
Browse files Browse the repository at this point in the history
  • Loading branch information
majnemer committed Oct 28, 2010
1 parent 0cbb34a commit 43d560c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commonsh/02_term
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if command -v infocmp >/dev/null 2>&1 ; then
if [ "${COLORTERM}" = "gnome-terminal" ] ; then if [ "${COLORTERM}" = "gnome-terminal" ] ; then
TERM="xterm-256color" TERM="xterm-256color"
fi fi
else elif [ -n "${SSH_TTY}" ] ; then
answerback_cmd="answerback.`uname -s`" answerback_cmd="answerback.`uname -s`"
if command -v ${answerback_cmd} >/dev/null 2>&1 ; then if command -v ${answerback_cmd} >/dev/null 2>&1 ; then
ANSWERBACK=`${answerback_cmd} 2>/dev/null` ANSWERBACK=`${answerback_cmd} 2>/dev/null`
Expand Down

0 comments on commit 43d560c

Please sign in to comment.