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=()