summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-02 13:57:52 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-02 13:58:52 -0500
commitab2ee2276aaca117ac4250923102b1ca6311ab42 (patch)
tree7647c84c7b4ec6b09ff86e72b01078af088030af /app-shells/bash
parentapp-portage/elogviewer: Revision bump to fix dependencies for bug 567110 (diff)
downloadgentoo-ab2ee2276aaca117ac4250923102b1ca6311ab42.tar.gz
gentoo-ab2ee2276aaca117ac4250923102b1ca6311ab42.tar.bz2
gentoo-ab2ee2276aaca117ac4250923102b1ca6311ab42.zip
app-shells/bash: do not leave exit value non-zero in default profile script
If the .bashrc file does not exist, then the one line check in the profile script leaves $? set to 1. Use a full if statement to avoid that.
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/files/dot-bash_profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/app-shells/bash/files/dot-bash_profile b/app-shells/bash/files/dot-bash_profile
index 94a6622b5c6..1de05a45e34 100644
--- a/app-shells/bash/files/dot-bash_profile
+++ b/app-shells/bash/files/dot-bash_profile
@@ -2,4 +2,6 @@
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
-[[ -f ~/.bashrc ]] && . ~/.bashrc
+if [[ -f ~/.bashrc ]] ; then
+ . ~/.bashrc
+fi