author | "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
Wed Aug 11 19:13:10 2010 +0200 (2010-08-11) | |
changeset 2079 | d2ceb140371d |
parent 2078 | 2895108fcec5 |
child 2080 | eefacabd9e72 |
1.1 --- a/scripts/functions Wed Aug 11 19:10:45 2010 +0200 1.2 +++ b/scripts/functions Wed Aug 11 19:13:10 2010 +0200 1.3 @@ -399,7 +399,7 @@ 1.4 # wget 1.5 # Usage: CT_DoGetFile <URL> 1.6 CT_DoGetFile() { 1.7 - if [ -n "${_aria2c}" ]; then 1.8 + if [ -n "${_aria2c}" -a ${CT_DOWNLOAD_MAX_CHUNKS} -gt 1 ]; then 1.9 CT_DoGetFileAria2 "$1" 1.10 elif [ -n "${_curl}" ]; then 1.11 CT_DoGetFileCurl "$1"