]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Only update ~/.last_reminder when reminders have been shown
[ConfigScripts.git] / sys / profile
index 54923056ed8f00c363c02e35dce525562c5e8315..f6e5aeef36d935f418e18484bf15b96fb0b01a22 100644 (file)
@@ -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