aboutsummaryrefslogtreecommitdiff
path: root/todo
diff options
context:
space:
mode:
Diffstat (limited to 'todo')
-rwxr-xr-xtodo4
1 files changed, 4 insertions, 0 deletions
diff --git a/todo b/todo
index bc49459..a4589c7 100755
--- a/todo
+++ b/todo
@@ -22,6 +22,10 @@ FOLDERS="`echo $WORKPATH | tr ':' ' ' | sed -e "s|~|$HOME|g"`"
# Iterate
function todo_find {
for folder in $FOLDERS; do
+ if [ ! -d "$folder" ]; then
+ continue
+ fi
+
find $folder/ -maxdepth $TODO_MAXDEPTH -xtype f -iname 'todo*' | while read todo; do
# Ignore lists without tasks
if grep -q -e '*' -e '-' $todo; then