summaryrefslogtreecommitdiffstats
path: root/share/skel/dot.profile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2009-03-27 21:13:14 +0000
committerru <ru@FreeBSD.org>2009-03-27 21:13:14 +0000
commit3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9 (patch)
tree4c373cd6a8806283878092d59e7d5e75bc10d3e1 /share/skel/dot.profile
parent8ef6e46753d8b63d8439751bc69439dc03c7fb5c (diff)
downloadFreeBSD-src-3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9.zip
FreeBSD-src-3c7ac9d092ca3961e38bd23cd0eb4d9d684acce9.tar.gz
Add explicit test so that non-existence of /usr/games/fortune
doesn't affect command exit status.
Diffstat (limited to 'share/skel/dot.profile')
-rw-r--r--share/skel/dot.profile2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud