diff --git a/check_lysrdiff b/check_lysrdiff index 00d8ae40336bee5a8cd5c619b40b9a2d5bb3946c..074e6fe147abe44dbf4a5969d33fec47593fd084 100755 --- a/check_lysrdiff +++ b/check_lysrdiff @@ -119,8 +119,8 @@ then fi ( sed -n 's/--fail$//p' $state; sed 's/--start$//' $state-stale; ) \ |awk 'BEGIN { sz = 0 } - NR > 1 && sz < 198 { printf ", "; sz += 2 } - sz < 200 { printf "%s", $3; sz += length($3) } + NR > 1 && sz < 198 { printf ","; sz += 2 } + sz < 200 { printf " %s", $3; sz += length($3) } END { if (sz >= 200) printf ", others" } ' \ |sed s'/, \([^,]*\)$/ and \1/' echo '. | activity='$ACTIVITY stale=$STALE failed=$FAILED @@ -138,8 +138,8 @@ then echo -n ": " sed -n 's/--fail$//p' $state \ |awk 'BEGIN { sz = 0 } - NR > 1 && sz < 198 { printf ", "; sz += 2 } - sz < 200 { printf "%s", $3; sz += length($3) } + NR > 1 && sz < 198 { printf ","; sz += 2 } + sz < 200 { printf " %s", $3; sz += length($3) } END { if (sz >= 200) printf ", others" } ' \ |sed s'/, \([^,]*\)$/ and \1/' echo '. | activity='$ACTIVITY stale=$STALE failed=$FAILED