From 563e0277aaebe5198587e2b68ef7111ac6ba6573 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 26 Sep 2023 08:33:15 -0400 Subject: [PATCH] View reminder wil now tell you if there are no reminders. --- scripts/reminder.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/reminder.sh b/scripts/reminder.sh index 930f32e..41d7889 100755 --- a/scripts/reminder.sh +++ b/scripts/reminder.sh @@ -94,8 +94,12 @@ add_weekly_reminder() { } view_reminders() { -mapfile -t lines < ~/.reminders - + if ! [[ -r ~/.reminders ]]; then + error "No reminders found." + return + fi + + mapfile -t lines < ~/.reminders # Create an empty array to store cleaned-up reminders yadMenu=()