From 87617bf55f6c9cf9f721cc21a7ae3e4838253723 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 21 Jul 2014 21:14:12 +0200 Subject: [PATCH] Reminders: only create "~/.last_reminder" when "~" is writable --- sys/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2