bash: changed some tests from existing file to readable file

This commit is contained in:
Gregor Bückendorf 2018-12-07 00:40:07 +01:00
parent 457f265f36
commit 0c9b44e53f
2 changed files with 2 additions and 2 deletions

View file

@ -19,6 +19,6 @@ set +a
# where the .bashrc has to be sourced to provide a similar environment to a
# terminal emulator. Found here:
# https://eklitzke.org/effectively-using-bash-profile
if [[ -t 0 && -f ~/.bashrc ]]; then
if [[ -t 0 && -r ~/.bashrc ]]; then
. ~/.bashrc
fi

View file

@ -1,7 +1,7 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
if [[ -r /etc/bashrc ]]; then
. /etc/bashrc
fi