summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 13764a4..aaf23ee 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -572,9 +572,14 @@ CT_DoGetFile() {
# not easy to detect them, so force a global ${CT_CONNECT_TIMEOUT}-second
# timeout.
# For curl, no good progress indicator is available. So, be silent.
+ if [ ${CT_CONNECT_TIMEOUT} = -1 ]; then
+ T=
+ else
+ T="-T ${CT_CONNECT_TIMEOUT}"
+ fi
if CT_DoExecLog ALL wget --passive-ftp --tries=3 -nc \
--progress=dot:binary \
- -T ${CT_CONNECT_TIMEOUT} \
+ ${T} \
-O "${tmp}" \
"${url}"
then