aboutsummaryrefslogtreecommitdiffstats
path: root/tools/win-setup.sh
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-02-15 22:31:21 +0000
committerGuy Harris <guy@alum.mit.edu>2010-02-15 22:31:21 +0000
commit2a5b73320716c1c972e20aebba627c43e283edbf (patch)
tree4ba45076f4f5ab29dc1d699dd651c0a0c6aa1161 /tools/win-setup.sh
parentc74f13983d92452941de8e883d4d6cba1c8e65ca (diff)
Protect against $proxy_enabled being empty.
svn path=/trunk/; revision=31886
Diffstat (limited to 'tools/win-setup.sh')
-rwxr-xr-xtools/win-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/win-setup.sh b/tools/win-setup.sh
index 2a746510b9..3835e5b695 100755
--- a/tools/win-setup.sh
+++ b/tools/win-setup.sh
@@ -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