From ab2ee2276aaca117ac4250923102b1ca6311ab42 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 2 Dec 2015 13:57:52 -0500 Subject: 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. --- app-shells/bash/files/dot-bash_profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app-shells/bash/files') 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 -- cgit v1.2.3-65-gdbad