From 2a5b73320716c1c972e20aebba627c43e283edbf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 15 Feb 2010 22:31:21 +0000 Subject: Protect against $proxy_enabled being empty. svn path=/trunk/; revision=31886 --- tools/win-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/win-setup.sh') 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 -- cgit v1.2.1