From 80703fae64728e727171d114e86366aa2c0eb214 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 27 Mar 2015 16:51:32 +0100 Subject: [PATCH] Correctly test for icalBuddy(1) and remind(1) --- sys/profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/profile b/sys/profile index 7088872..5492305 100644 --- a/sys/profile +++ b/sys/profile @@ -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 -- 2.39.2