summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 18:43:26 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 18:43:26 (GMT)
commit5b29e80130d3eb7cba40401107b824beb8625468 (patch)
tree0f69ee45a326017976bb201a8f4455c7e1f292ee
parent8a2b17ab5eb0b279354b431d6a83c39751a36d6a (diff)
Fix handling of downloader output: they are now correctly logged using the internal log facility.
-rw-r--r--scripts/functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions
index 3b5d1d0..a207576 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -251,8 +251,8 @@ CT_DoGetFile() {
local _curl=`which curl`
case "${_wget},${_curl}" in
,) CT_DoError "Could find neither wget nor curl";;
- ,*) CT_DoGetFileCurl "$1" |CT_DoLog DEBUG;;
- *) CT_DoGetFileWget "$1" |CT_DoLog DEBUG;;
+ ,*) CT_DoGetFileCurl "$1" 2>&1 |CT_DoLog DEBUG;;
+ *) CT_DoGetFileWget "$1" 2>&1 |CT_DoLog DEBUG;;
esac
}
@@ -288,7 +288,7 @@ CT_GetFile() {
for url in "$@"; do
case "${url}" in
*) CT_DoLog DEBUG "Trying \"${url}/${file}${ext}\""
- CT_DoGetFile "${url}/${file}${ext}" 2>&1
+ CT_DoGetFile "${url}/${file}${ext}"
;;
esac
[ -f "${file}${ext}" ] && got_it=1 && break 2 || true