From 6e2180c1f2240d755285e910a84d88f0491d14ad Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 20 Jun 2008 11:58:13 +0000 Subject: Print "Build completed" only if not in error, not the other way around. /trunk/scripts/functions | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions b/scripts/functions index 8feba43..fc50757 100644 --- a/scripts/functions +++ b/scripts/functions @@ -120,7 +120,7 @@ CT_DoEnd() local level="$1" CT_STOP_DATE=$(CT_DoDate +%s%N) CT_STOP_DATE_HUMAN=$(CT_DoDate +%Y%m%d.%H%M%S) - if [ "${level}" = "ERROR" ]; then + if [ "${level}" != "ERROR" ]; then CT_DoLog "${level:-INFO}" "Build completed at ${CT_STOP_DATE_HUMAN}" fi elapsed=$((CT_STOP_DATE-CT_STAR_DATE)) -- cgit v0.10.2-6-g49f6