Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.
This commit is contained in:
parent
8ef6e46753
commit
3c7ac9d092
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user