cookutils diff cook @ rev 580
cook: loglimit can be disabled (thanks ernia)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 31 08:53:36 2013 +0100 (2013-01-31) |
parents | ab53ffd16827 |
children | 0e5af63ef050 |
line diff
1.1 --- a/cook Wed Jan 30 09:01:00 2013 +0100 1.2 +++ b/cook Thu Jan 31 08:53:36 2013 +0100 1.3 @@ -894,7 +894,8 @@ 1.4 # Truncate stdout log file to $1 Mb. 1.5 loglimit() 1.6 { 1.7 - tee /dev/stderr | dd bs=1024k count=${1:-50} conv=noerror 2> /dev/null 1.8 + [ -n "$DEFAULT_LOG_LIMIT" ] || return 1.9 + tee /dev/stderr | dd bs=1024k count=${1:-$DEFAULT_LOG_LIMIT} conv=noerror 2> /dev/null 1.10 } 1.11 1.12 #