From: Alexander Barton Date: Fri, 27 Mar 2015 15:51:32 +0000 (+0100) Subject: Correctly test for icalBuddy(1) and remind(1) X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80703fae64728e727171d114e86366aa2c0eb214;p=ConfigScripts.git Correctly test for icalBuddy(1) and remind(1) --- 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