Add explicit test so that non-existence of /usr/games/fortune

doesn't affect command exit status.
This commit is contained in:
Ruslan Ermilov 2009-03-27 21:13:14 +00:00
parent 5b4fb02615
commit 0c9e0226e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190477
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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