[CentOS] /etc/bashrc causing probs..

Thu Jan 13 13:55:45 UTC 2011
Nicolas Thierry-Mieg <Nicolas.Thierry-Mieg at imag.fr>

Roland RoLaNd wrote:
> Hello,
> i've appended the below to /etc/bashrc, which is causing an error once i
> try to rsync using ssh to this specific box.
> any idea how to prevent bashrc to execute the below to a no login shell
> ? or any other advice for that matter.

you might try putting your block of code in:
if [ -n "$PS1" ] ; then
<your code>

this way it's only executed in interactive shells.