1.1 --- a/scripts/functions Wed Oct 17 22:01:25 2012 +0200
1.2 +++ b/scripts/functions Thu Oct 11 14:39:41 2012 +1000
1.3 @@ -216,6 +216,7 @@
1.4 CT_DoExecLog() {
1.5 local level="$1"
1.6 local cur_cmd
1.7 + local ret
1.8 shift
1.9 (
1.10 for i in "$@"; do
1.11 @@ -254,12 +255,14 @@
1.12 rm -f "${CT_BUILD_DIR}/repeat"
1.13 CT_DoLog DEBUG "==> Executing: ${cur_cmd}"
1.14 "${@}" 2>&1 |CT_DoLog "${level}"
1.15 + ret="${?}"
1.16 if [ -f "${CT_BUILD_DIR}/repeat" ]; then
1.17 continue
1.18 else
1.19 break
1.20 fi
1.21 done
1.22 + exit ${ret}
1.23 )
1.24 # Catch failure of the sub-shell
1.25 [ $? -eq 0 ]
1.26 @@ -570,9 +573,11 @@
1.27 then
1.28 # Success, we got it, good!
1.29 mv "${tmp}" "${dest}"
1.30 + CT_DoLog DEBUG "Got it from: \"${url}\""
1.31 else
1.32 # Woops...
1.33 rm -f "${tmp}"
1.34 + CT_DoLog DEBUG "Not at this location: \"${url}\""
1.35 fi
1.36 }
1.37