commit 5215d426289002471d362541c232c130af6f9a05 from: Paul W. Rankin date: Thu Aug 04 11:55:15 2022 UTC Use first TODO/todo.* file in CWD if present commit - 7bc3108e78efb04e83b746bad84fde8f3c36278c commit + 5215d426289002471d362541c232c130af6f9a05 blob - 92c53796de7d374fcdda3e7fac6cf401f0f7db32 blob + 50753140bf25fe45f5d6c36d2d07c4cc3725ca8b --- todo.sh +++ todo.sh @@ -4,7 +4,9 @@ set -o pipefail program=$(basename "$0") fail() { echo "$1"; exit 1; } -todo_file="${TODO_FILE:-${PWD}/TODO}" +for f in *; do + expr "$f" : [Tt][Oo][Dd][Oo] > /dev/null && todo_file="$f" && break +done test -f "$todo_file" || fail "TODO_FILE not found"