Use note: lines for HTML metadata, not # comments
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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=()
|
||||
|
||||
Reference in New Issue
Block a user