diff --git a/agenda b/agenda index 1212ada..c742030 100644 --- a/agenda +++ b/agenda @@ -360,6 +360,8 @@ __agenda_default_template() { __agenda_last() { local file=$1 name=$2 + [ -d "$AGENDA_DIR/$name" ] || return 0 + local last while read -r REPLY; do if [ "$REPLY" = "$file" ]; then