In Bash I\'m executing a command and putting the result in a variable like this:
export var=`svn ls`
But if SVN fails for some reason--say it returns a n
export FOO=$(your-command) || echo "your-command failed"