INNER CODE UNIT · Shell
deduplicateNum
todotxt/todo.txt-cli · todo.sh:1533
deduplicateNum=$(( originalTaskNum - newTaskNum ))
if [ $deduplicateNum -eq 0 ]; then
die "TODO: No duplicate tasks found"
else
echo "TODO: $deduplicateNum duplicate task(s) removed"
fi
;;
"listaddons")
if [ -d "$TODO_ACTIONS_DIR" ]; then
cd -- "$TODO_ACTIONS_DIR" || exit $?
actionsCnt=0
for action in *
do
if [ -f "$action" ] && [ -x "$action" ]; then
echo "$action"
((actionsCnt+=1))
elif [ -d "$action" ] && [ -x "$action/$action" ]; then