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(-)
This commit is contained in:
Yann E. MORIN" 2008-06-20 11:58:13 +00:00
parent 8f0f8a170a
commit 6e2180c1f2

View File

@ -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))