From 0c9b44e53f9dd096fb2e6e26280bacded17c29df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20B=C3=BCckendorf?= Date: Fri, 7 Dec 2018 00:40:07 +0100 Subject: [PATCH] bash: changed some tests from existing file to readable file --- .bash_profile | 2 +- .bashrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_profile b/.bash_profile index 8a8cf4b..4c8657d 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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 diff --git a/.bashrc b/.bashrc index 4746128..b8b5964 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,7 @@ # .bashrc # Source global definitions -if [ -f /etc/bashrc ]; then +if [[ -r /etc/bashrc ]]; then . /etc/bashrc fi