From 78161ccb226483df3fbc84fa7cb90d34b6a26da8 Mon Sep 17 00:00:00 2001 From: Jonas Kattendick Date: Thu, 16 Nov 2023 20:04:58 +0100 Subject: [PATCH] fix: confusing find error Fixes #2 --- agenda | 2 ++ 1 file changed, 2 insertions(+) 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