mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.
This commit is contained in:
parent
5b4fb02615
commit
0c9e0226e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190477
|
@ -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 a new issue