]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Reminders: only create "~/.last_reminder" when "~" is writable
authorAlexander Barton <alex@barton.de>
Mon, 21 Jul 2014 19:14:12 +0000 (21:14 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 21 Jul 2014 19:14:12 +0000 (21:14 +0200)
sys/profile

index 18559d333d7a04eba4a7bc5fb177c50795f62580..0e69c899f74138f13e080bbd8b44eba7ac4ac64f 100644 (file)
@@ -188,7 +188,7 @@ if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then
                        [ $? -eq 0 ] && echo
                fi
        fi
-       touch ~/.last_reminder
+       [ -w ~/ ] && touch ~/.last_reminder
 fi
 
 # bash-specific initialization