]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Reminders: only create "~/.last_reminder" when "~" is writable
[ConfigScripts.git] / sys / profile
index a190bd78f570c76e8d84de594808f3533487f2aa..0e69c899f74138f13e080bbd8b44eba7ac4ac64f 100644 (file)
@@ -4,11 +4,13 @@
 # Written 2003-2014 by Alexander Barton (alex@barton.de)
 #
 
-[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/profile ..."
+[ -e ~/.ConfigScripts.debug ] && echo " .. /etc/profile ..."
 
 PROFILEREAD="true"
 export PROFILEREAD
 
+[ -e ~/.ConfigScripts.debug ] && echo " >> /etc/profile ..."
+
 # Setup locale and encoding
 if [ -e ~/.ConfigScripts.debug ]; then
        echo " - TERM=\"$TERM\""
@@ -186,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