Skip to content

Commit

Permalink
app-shells/bash: do not leave exit value non-zero in default profile …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
vapier committed Dec 2, 2015
1 parent 0a331e6 commit ab2ee22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app-shells/bash/files/dot-bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab2ee22

Please sign in to comment.