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

@@ -16,7 +16,8 @@ if [[ -z "$LATEST" ]]; then
exit 1
fi
if grep -qv '^#' samples.txt 2>/dev/null && grep -q '[^[:space:]]' samples.txt; then
if grep -v '^#' samples.txt 2>/dev/null | grep -iv '^[[:space:]]*note:' \
| grep -q '[^[:space:]]'; then
./tsv-to-csv.py "$LATEST" -s samples.txt
else
./tsv-to-csv.py "$LATEST"
@@ -24,7 +25,8 @@ fi
CSV="${LATEST%.tsv}.csv"
READING_COUNT="$(($(wc -l < "$LATEST") - 1))"
EXPECTED="$(grep -cv '^#\|^$' samples.txt 2>/dev/null || echo 0)"
EXPECTED="$(grep -v '^#' samples.txt 2>/dev/null | grep -iv '^[[:space:]]*note:' \
| grep -cv '^[[:space:]]*$' || echo 0)"
echo ""
echo "============================================"