]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Correctly test for icalBuddy(1) and remind(1)
[ConfigScripts.git] / sys / profile
index 7088872198ad466e49b3620c6ee472b60779d656..54923056ed8f00c363c02e35dce525562c5e8315 100644 (file)
@@ -198,7 +198,7 @@ type -t tset >/dev/null && eval `tset -s -Q`
 # Reminders (once every 60 minutes)
 if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then
        [ -e ~/.ConfigScripts.debug ] && echo "     - Reminders ..."
-       if [ "$(type -t icalBuddy >/dev/null)" -a "$LOGNAME" != "root" ]; then
+       if [ "$(type -t icalBuddy 2>/dev/null)" -a "$LOGNAME" != "root" ]; then
                # icalBuddy(1)
                case "$LANG" in
                        *.UTF*) bul="•"; bul_imp="!"; sep="»"; ;;
@@ -214,7 +214,7 @@ if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then
                unset bul bul_imp sep
        else
                # remind(1)
-               if [ "$(type -t remind >/dev/null)" -a -r ~/.remind ]; then
+               if [ "$(type -t remind 2>/dev/null)" -a -r ~/.remind ]; then
                        remind -h -g -t5 ~/.remind | \
                                grep -v '^Reminders for ' | grep -v '^$'
                        [ $? -eq 0 ] && echo