From 3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 27 Mar 2009 21:13:14 +0000 Subject: Add explicit test so that non-existence of /usr/games/fortune doesn't affect command exit status. --- share/skel/dot.login | 2 +- share/skel/dot.profile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'share/skel') diff --git a/share/skel/dot.login b/share/skel/dot.login index 894021a..b8688f9 100644 --- a/share/skel/dot.login +++ b/share/skel/dot.login @@ -5,4 +5,4 @@ # see also csh(1), environ(7). # -[ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips +if ( -x /usr/games/fortune ) /usr/games/fortune freebsd-tips diff --git a/share/skel/dot.profile b/share/skel/dot.profile index 2e1ca0c..3a8bd3e 100644 --- a/share/skel/dot.profile +++ b/share/skel/dot.profile @@ -21,4 +21,4 @@ PAGER=more; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV -[ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips +if [ -x /usr/games/fortune ] ; then /usr/games/fortune freebsd-tips ; fi -- cgit v1.1