Protect against $proxy_enabled being empty.

svn path=/trunk/; revision=31886
This commit is contained in:
Guy Harris 2010-02-15 22:31:21 +00:00
parent c74f13983d
commit 2a5b733207
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ find_proxy() {
# ...and wget can't fetch two registry keys because...?
proxy_enabled=`regtool get /HKCU/Software/Microsoft/Windows/CurrentVersion/Internet\ Settings/ProxyEnable 2>/dev/null`
if [ -n "$proxy_enabled" -a $proxy_enabled -ne 0 ] ; then
if [ -n "$proxy_enabled" -a "$proxy_enabled" -ne 0 ] ; then
export http_proxy=`regtool get /HKCU/Software/Microsoft/Windows/CurrentVersion/Internet\ Settings/ProxyServer 2>/dev/null`
echo "Using Internet Explorer proxy settings."
fi