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