commit - 61dbf5e8dac05544cf4189a465f5afeea3bd965d
commit + 53e7b9ead19bcfde25df0973791c9e3b41749140
blob - 0df56a1165df5eeab1923ac0bc570da6ad0bfaa9
blob + 4621c472dcf21631f253c6209273477d4f9bc33b
--- t_done.sh
+++ t_done.sh
while read -r todo; do
tmp=$(mktemp)
awk -v str="$todo" \
- '$0 == str { gsub (/- \[ ]/, "- [x]") } { print }' \
+ '$0 == str { gsub (/- \[ ]/, "- [X]") } { print }' \
"$todo_file" > "$tmp"
mv "$tmp" "$todo_file"
done
tmp=$(mktemp)
check=
expr "$todo" : "$re_done" > /dev/null &&
- check='- [ ]' || check='- [x]'
+ check='- [ ]' || check='- [X]'
awk -v str="$todo" -v check="$check" \
'$0 == str { gsub (/- \[[ xX]]/, check) } { print }' \
"$todo_file" > "$tmp"