summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-08-09 17:45:55 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-08-09 17:45:55 (GMT)
commitba23f53157da4578bea5ca9f99ab4063d585872c (patch)
tree9d10812286d6b84864bff7ef2e5198f85d15e972 /scripts/functions
parent09cb865f74ef537299476689273a5b34290b1ca6 (diff)
Merge #914 from branches/eglibc:
Fix setting the proxy. /trunk/scripts/functions | 5 3 2 0 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index a33cfd4..25d4ad6 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -290,9 +290,10 @@ CT_GetFileExtension() {
# Set environment for proxy access
# Usage: CT_DoSetProxy <proxy_type>
-# where proxy_type is one of 'none', 'http', 'sockssys', 'socks4' or 'socks5'
+# where proxy_type is one of 'http', 'sockssys', 'socks4' or 'socks5',
+# or empty (to not change proxy settings).
CT_DoSetProxy() {
- case "${CT_PROXY_TYPE}" in
+ case "${1}" in
http)
http_proxy="http://"
case "${CT_PROXY_USER}:${CT_PROXY_PASS}" in