tractatus/scripts
TheFlow d1dbbd74e6 fix: resolve grep count handling in log monitor
Fix syntax errors in log-monitor.sh caused by grep returning multiple
values or empty strings. Use || true instead of || echo "0" fallback
and explicitly check for empty values.

Changes:
- Replace || echo "0" with || true
- Add explicit empty string checks before comparisons
- Ensures count variables are always single integers

Fixes error: "syntax error in expression (error token is "0")"

Testing: Confirmed working on production with ./log-monitor.sh --test
2025-10-10 05:30:36 +13:00
..
monitoring fix: resolve grep count handling in log monitor 2025-10-10 05:30:36 +13:00
add-sections-to-documents.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
audit-accessibility.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-color-contrast.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
check-session-pressure.js feat: session management + test improvements - 73.4% → 77.6% coverage 2025-10-07 09:11:13 +13:00
clean-test-db.js fix: add Jest test infrastructure and reduce test failures from 29 to 13 2025-10-09 20:37:45 +13:00
deploy-frontend.sh feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
deploy-full-project-SAFE.sh security: create deployment exclusion list and safe deployment script 2025-10-09 15:47:20 +13:00
deploy-koha-to-production.sh feat: add Koha pre-production deployment configuration 2025-10-08 21:00:54 +13:00
framework-watchdog.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
generate-pdfs.js feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
generate-single-pdf.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
import-technical-docs.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
init-db.js feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
init-koha.js feat: implement Koha donation system frontend (Phase 3) 2025-10-08 13:56:56 +13:00
install-mongodb-service.sh feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
install-systemd.sh feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-appendix-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
migrate-documents.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
mobile-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
mongodb-tractatus.service feat: add MongoDB systemd service and database initialization 2025-10-06 23:28:42 +13:00
performance-audit.js feat: complete Phase 2 - accessibility, performance, mobile polish 2025-10-08 13:29:26 +13:00
pre-action-check.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
recover-framework.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
security-audit.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
seed-admin.js feat: add API routes, controllers, and migration tools 2025-10-07 00:36:40 +13:00
session-init.js feat: comprehensive documentation improvements and GitHub integration 2025-10-09 14:33:14 +13:00
validate-document-security.js feat(infra): semantic versioning and systemd service implementation 2025-10-09 09:16:22 +13:00
validate-public-sync.js fix: update validation script to allow legitimate public info 2025-10-09 15:23:40 +13:00