From 75dd524fadc022d9e6845f41f19203c3d5a951cd Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 21 Oct 2026 15:28:20 +0800 Subject: add VPS snapshot pipeline, run.sh, and data-repair fixes - fetch_tw_daily.sh: --snapshot mode (one file per trading day, merged by symbol), retries, validation of numeric fields - cron_daily.sh (VPS): lock, pruning, e-mail alerts on failure - sync_from_vps.sh (Mac): rsync snapshots and merge into per-stock CSVs - run.sh: pick data files for a symbol, build, analyse, open the page - lib.sh: LC_ALL=C; fetch.sh: small fixes - data.rs: repair rows whose open/close fall outside high/low - template: horizontal hover lines in the RSI and KD panels Co-Authored-By: Claude Sonnet 5.5 --- scripts/lib.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/lib.sh') diff --git a/scripts/lib.sh b/scripts/lib.sh index 3a28552..efe5556 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -1,4 +1,5 @@ # Shared helpers for fetch.sh and fetch_tw_daily.sh (source this file). +export LC_ALL=C # awk/sort numeric and ordering behaviour must not depend on the user locale (e.g. comma decimals) header="Date,Open,High,Low,Close,Volume" # merge_into FILE NEWROWS: merge by date (new wins), sorted, warn on >1% close mismatch. -- cgit v1.2.3-18-g5258