Skip to content

Commit 50c362a

Browse files
Devamittaclaude
andcommitted
fix(dpd-anki): use case-insensitive glob instead of bash 4 ${var,,} expansion
macOS ships bash 3.2, which lacks the ${var,,} lowercasing syntax and fails with "bad substitution". Match [Yy]* directly instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent d8f8cc9 commit 50c362a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/cl_dps/dpd-anki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ if ! run "$PROJECT_ROOT/db_tests/sbs_consistency_tests.py"; then
2020
fi
2121

2222
answer=$(uv run tools/ask.py "Update 'test' and 'feedback' fields in Anki notes?")
23-
case "${answer,,}" in
24-
y*)
23+
case "$answer" in
24+
[Yy]*)
2525
uv run tools/ask.py --print --color green "Updating test/feedback fields..."
2626
run "$PROJECT_ROOT/scripts/export/dps_anki_updater.py" "test"
2727
;;

0 commit comments

Comments
 (0)