diff -r 57cda75fd174 -r 18da1aa1beab scripts/functions --- a/scripts/functions Fri Jul 30 17:50:34 2010 +0200 +++ b/scripts/functions Wed Aug 11 20:07:18 2010 +0200 @@ -363,7 +363,7 @@ # connecting, so force a global ${CT_CONNECT_TIMEOUT}-second timeout. CT_DoExecLog ALL wget -T ${CT_CONNECT_TIMEOUT} -nc --progress=dot:binary --tries=3 --passive-ftp "$1" \ || CT_DoExecLog ALL wget -T ${CT_CONNECT_TIMEOUT} -nc --progress=dot:binary --tries=3 "$1" \ - || true + || rm -f "${1##*/}" } # Download an URL using curl @@ -374,7 +374,7 @@ # so, be silent. CT_DoExecLog ALL curl -s --ftp-pasv -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT} -L -f \ || CT_DoExecLog ALL curl -s -O --retry 3 "$1" --connect-timeout ${CT_CONNECT_TIMEOUT} -L -f \ - || true + || rm -f "${1##*/}" } # Download using aria2