replaced loop to find proxy with call to findproxy.

This commit is contained in:
hjp 2008-05-02 09:00:15 +00:00
parent c61c6c65e2
commit ee5a5a69d0
1 changed files with 2 additions and 10 deletions

View File

@ -1,5 +1,5 @@
# #
# $Id: .zprofile,v 1.19 2007-10-09 11:49:11 hjp Exp $ # $Id: .zprofile,v 1.20 2008-05-02 09:00:15 hjp Exp $
# #
# this is sourced for login shells after .zshenv but before .zshrc # this is sourced for login shells after .zshenv but before .zshrc
# #
@ -29,13 +29,5 @@ if [ "`uname`" = HP-UX ]
then then
export http_proxy=http://squid.wsr.ac.at:3128/ export http_proxy=http://squid.wsr.ac.at:3128/
else else
unset http_proxy http_proxy=`findproxy http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/`
for i in http://zeno.hjp.at:3128/ http://squid.wsr.ac.at:3128/
do
if http_proxy=$i wget -q -O /dev/null http://www.hjp.at
then
export http_proxy=$i
break
fi
done
fi fi