Stop bash2/sudo complaining that subversion servers file isn't readable.
authorIain Patterson <me@iain.cx>
Mon, 2 Jul 2007 15:22:18 +0000 (15:22 +0000)
committerIain Patterson <me@iain.cx>
Mon, 2 Jul 2007 15:22:18 +0000 (15:22 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@62 6be0d1a5-5cfe-0310-89b6-964be062b18b

.profile.d/proxy.bashrc

index a0096d1..ecf56ae 100644 (file)
@@ -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