87c69cd59b
Same newline sanitization issue as email diagnostics - grep -c output can contain newlines causing "integer expression expected" errors. Fixed by sanitizing count variables: - Line 3367: Category count comparison - Line 2533: Performance cache occurrence count Added: echo "$count" | head -1 | tr -d '\n\r' Prevents errors like: [: 0\n0: integer expression expected