# HG changeset patch # User Christopher Rogers # Date 1429304554 0 # Node ID 38cd201187fa2aac9ef20e59dd785235e931db92 # Parent 5cb10078fbc01e2a3bbfcb0436ded3d9922790b1 cook: Fixed loglimit function. diff -r 5cb10078fbc0 -r 38cd201187fa cook --- a/cook Fri Apr 17 21:01:26 2015 +0000 +++ b/cook Fri Apr 17 21:02:34 2015 +0000 @@ -1150,7 +1150,7 @@ # Truncate stdout log file to $1 Mb. loglimit() { - if [ "$DEFAULT_LOG_LIMIT" ]; then + if [ -n "$DEFAULT_LOG_LIMIT" ]; then tee /dev/stderr | dd bs=1024k count=${1:-$DEFAULT_LOG_LIMIT} 2> /dev/null else tee /dev/stderr