commit 8b3bae9fe29ffc919c456303ac5f08b2fa895f6a
parent ecc6f6166eacb265347d30e1b0a1600e383cb3bc
Author: Riaz <riaz@riazj.com>
Date: Sat, 19 Jul 2025 19:20:44 -0700
Remove unneeded true statement
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.local/bin/todo b/.local/bin/todo
@@ -4,8 +4,7 @@ TODO="$HOME/todo"
height="$(wc -l "$TODO")"
height="${height% *}"
-while true; do
- sel="$(dmenu -i -l "$height" < "$TODO")"
+while sel="$(dmenu -i -l "$height" < "$TODO")"; do
if grep -q "^$sel$" "$TODO"; then
sed -i "/^$sel$/d" "$TODO"
height=$((height-1))