Ensure the CWD precedes PROFILE_HOME in new CDPATH.
[profile.git] / .profile.d / proxy.bashrc
index a0096d1..746a897 100644 (file)
@@ -1,9 +1,8 @@
-# $Id$
 # Read proxy information from Subversion if possible.
 
 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