X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.profile.d%2Fproxy.bashrc;h=746a8972bc24cfd37da8731fa56515ccaaf61560;hp=a0096d1f175de538eb27fc73c50752ec16df1dda;hb=92baf2b71dfac31f0d2204eff97faca94c3f4b2e;hpb=eaac4916b4ac9d16d5bae80e256f946cb340b932 diff --git a/.profile.d/proxy.bashrc b/.profile.d/proxy.bashrc index a0096d1..746a897 100644 --- a/.profile.d/proxy.bashrc +++ b/.profile.d/proxy.bashrc @@ -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