View reminder wil now tell you if there are no reminders.

This commit is contained in:
Storm Dragon 2023-09-26 08:33:15 -04:00
parent 4e00211c02
commit 563e0277aa

View File

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