X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fproxy.bashrc;h=746a8972bc24cfd37da8731fa56515ccaaf61560;hb=4b6b1a53dad6cb20faaaf746726e054f00618128;hp=a0096d1f175de538eb27fc73c50752ec16df1dda;hpb=eaac4916b4ac9d16d5bae80e256f946cb340b932;p=profile.git 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