Print "Build completed" only if not in error, not the other way around.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 20 11:58:13 2008 +0000 (2008-06-20)
changeset 5995105b3e83f26
parent 598 a2b23333b17a
child 600 8c669e6e9af3
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(-)
scripts/functions
     1.1 --- a/scripts/functions	Fri Jun 20 10:58:45 2008 +0000
     1.2 +++ b/scripts/functions	Fri Jun 20 11:58:13 2008 +0000
     1.3 @@ -120,7 +120,7 @@
     1.4      local level="$1"
     1.5      CT_STOP_DATE=$(CT_DoDate +%s%N)
     1.6      CT_STOP_DATE_HUMAN=$(CT_DoDate +%Y%m%d.%H%M%S)
     1.7 -    if [ "${level}" = "ERROR" ]; then
     1.8 +    if [ "${level}" != "ERROR" ]; then
     1.9          CT_DoLog "${level:-INFO}" "Build completed at ${CT_STOP_DATE_HUMAN}"
    1.10      fi
    1.11      elapsed=$((CT_STOP_DATE-CT_STAR_DATE))