From: Iain Patterson Date: Mon, 2 Jul 2007 15:22:18 +0000 (+0000) Subject: Stop bash2/sudo complaining that subversion servers file isn't readable. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=4c084b173893d32a777784e2fce2315ba7c48d7d;p=profile.git Stop bash2/sudo complaining that subversion servers file isn't readable. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@62 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.profile.d/proxy.bashrc b/.profile.d/proxy.bashrc index a0096d1..ecf56ae 100644 --- a/.profile.d/proxy.bashrc +++ b/.profile.d/proxy.bashrc @@ -3,7 +3,7 @@ servers=~/.subversion/servers -if [ -r "$servers" ]; then +if [ -O "$servers" ]; then eval $(sed -n '/^\[global\]/,/^\[/s/^http-proxy-\([^= ]*\) *= *\(.*\)/proxy_\1="\2"/p' "$servers") creds="" if [ ! -z "$proxy_host" ]; then