From 4010cb2389835dd7b82875bf0ee46847f5ac1161 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 18 Dec 2011 21:34:58 -0500 Subject: [PATCH] Add `which calendar` test to calendar call in .bash_profile. --- src/.bash_profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/.bash_profile b/src/.bash_profile index 5c790a4..b946370 100644 --- a/src/.bash_profile +++ b/src/.bash_profile @@ -13,6 +13,7 @@ fi # print my calendar if I've configured it # http://bsdcalendar.sourceforge.net/ (Gentoo: app-misc/calendar) -if [ -f ~/.calendar/calendar ]; then +CALENDAR=$(which calendar 2> /dev/null) +if [ -n "${CALENDAR}" ] && [ -f ~/.calendar/calendar ]; then calendar fi -- 2.26.2