From e1a59eef9b7baf17c3c38e95bb9bf93e17b1b37f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 27 Mar 2015 16:52:03 +0100 Subject: [PATCH] Only update ~/.last_reminder when reminders have been shown --- sys/profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/profile b/sys/profile index 5492305..f6e5aee 100644 --- a/sys/profile +++ b/sys/profile @@ -212,6 +212,7 @@ if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then eventsToday+1 2>/dev/null [ $? -eq 0 ] && echo unset bul bul_imp sep + [ -w ~/ ] && touch ~/.last_reminder else # remind(1) if [ "$(type -t remind 2>/dev/null)" -a -r ~/.remind ]; then @@ -219,8 +220,8 @@ if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then grep -v '^Reminders for ' | grep -v '^$' [ $? -eq 0 ] && echo fi + [ -w ~/ ] && touch ~/.last_reminder fi - [ -w ~/ ] && touch ~/.last_reminder fi # bash-specific initialization -- 2.39.2