Use note: lines for HTML metadata, not # comments

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-23 11:28:13 +03:30
parent 1b9848d14f
commit 4b4cf9aae8
8 changed files with 45 additions and 26 deletions

View File

@@ -133,8 +133,8 @@ scan_samples() {
SAMPLES=()
while IFS= read -r line; do
SAMPLES+=("$line")
done < <(grep -v '^#' "$SAMPLES_FILE" | grep -v '^[[:space:]]*$' \
| sed -E 's/[[:space:]]*>.*$//')
done < <(grep -v '^#' "$SAMPLES_FILE" | grep -iv '^[[:space:]]*note:' \
| grep -v '^[[:space:]]*$' | sed -E 's/[[:space:]]*>.*$//')
local count="${#SAMPLES[@]}"
[[ "$count" -gt 0 ]] || fail "No sample names found in $SAMPLES_FILE"
@@ -190,7 +190,8 @@ update_average() {
info "Step 5/5: Updating $AVERAGED_CSV"
local expected
expected="$(grep -v '^#' "$SAMPLES_FILE" | grep -cv '^[[:space:]]*$' || true)"
expected="$(grep -v '^#' "$SAMPLES_FILE" | grep -iv '^[[:space:]]*note:' \
| grep -cv '^[[:space:]]*$' || true)"
# Collect scan CSVs (timestamped files only) with the expected reading count
local -a scans=()