aboutsummaryrefslogtreecommitdiffstats
path: root/tools/win32-setup.sh
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2008-10-07 19:47:28 +0000
committerGerald Combs <gerald@wireshark.org>2008-10-07 19:47:28 +0000
commitb6f8143e3b562d88f2d2b0cf93422a28d84f5625 (patch)
treebbbe0049f8330e183c4527db0aea3e7858017646 /tools/win32-setup.sh
parent7e3514c2000f616bff6301ba689291415670b5f6 (diff)
If we auto-discover http_proxy, export it so that wget can pick it up. Change
the shebang to use /bin/bash since we use bash-isms in the script. svn path=/trunk/; revision=26373
Diffstat (limited to 'tools/win32-setup.sh')
-rwxr-xr-xtools/win32-setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/win32-setup.sh b/tools/win32-setup.sh
index b41a9ed25b..f269490f1d 100755
--- a/tools/win32-setup.sh
+++ b/tools/win32-setup.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# $Id$
@@ -44,7 +44,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
- http_proxy=`regtool get /HKCU/Software/Microsoft/Windows/CurrentVersion/Internet\ Settings/ProxyServer 2>/dev/null`
+ export http_proxy=`regtool get /HKCU/Software/Microsoft/Windows/CurrentVersion/Internet\ Settings/ProxyServer 2>/dev/null`
echo "Using Internet Explorer proxy settings."
fi