Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash/files/
Date: Wed, 02 Dec 2015 18:59:15
Message-Id: 1449082732.ab2ee2276aaca117ac4250923102b1ca6311ab42.vapier@gentoo
1 commit: ab2ee2276aaca117ac4250923102b1ca6311ab42
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 18:57:52 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 18:58:52 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab2ee227
7
8 app-shells/bash: do not leave exit value non-zero in default profile script
9
10 If the .bashrc file does not exist, then the one line check in the profile
11 script leaves $? set to 1. Use a full if statement to avoid that.
12
13 app-shells/bash/files/dot-bash_profile | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
15
16 diff --git a/app-shells/bash/files/dot-bash_profile b/app-shells/bash/files/dot-bash_profile
17 index 94a6622..1de05a4 100644
18 --- a/app-shells/bash/files/dot-bash_profile
19 +++ b/app-shells/bash/files/dot-bash_profile
20 @@ -2,4 +2,6 @@
21
22 # This file is sourced by bash for login shells. The following line
23 # runs your .bashrc and is recommended by the bash info pages.
24 -[[ -f ~/.bashrc ]] && . ~/.bashrc
25 +if [[ -f ~/.bashrc ]] ; then
26 + . ~/.bashrc
27 +fi