replaced loop to find proxy with call to findproxy.
This commit is contained in:
parent
c61c6c65e2
commit
ee5a5a69d0
12
.zprofile
12
.zprofile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue