From: Mike Frysinger Date: Wed, 2 Dec 2015 18:57:52 +0000 (-0500) Subject: app-shells/bash: do not leave exit value non-zero in default profile script X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ab2ee2276aaca117ac4250923102b1ca6311ab42;p=gentoo.git 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. --- diff --git a/app-shells/bash/files/dot-bash_profile b/app-shells/bash/files/dot-bash_profile index 94a6622b5c67..1de05a45e34a 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