From: Alexander Barton Date: Mon, 21 Jul 2014 19:14:12 +0000 (+0200) Subject: Reminders: only create "~/.last_reminder" when "~" is writable X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=commitdiff_plain;h=87617bf55f6c9cf9f721cc21a7ae3e4838253723 Reminders: only create "~/.last_reminder" when "~" is writable --- diff --git a/sys/profile b/sys/profile index 18559d3..0e69c89 100644 --- a/sys/profile +++ b/sys/profile @@ -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