diff options
-rw-r--r-- | bash/bashrc | 4 | ||||
-rw-r--r-- | sh/profile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bash/bashrc b/bash/bashrc index a0f6448a..f2d32558 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -86,7 +86,9 @@ fi # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]] ; then for bashrc in "$HOME"/.bashrc.d/*.bash ; do - source "$bashrc" + if [[ -e $bashrc ]] ; then + source "$bashrc" + fi done unset -v bashrc fi @@ -6,7 +6,9 @@ fi # Load all supplementary scripts in ~/.profile.d if [ -d "$HOME"/.profile.d ] ; then for profile in "$HOME"/.profile.d/*.sh ; do - . "$profile" + if [ -e "$profile" ] ; then + . "$profile" + fi done unset -v profile fi |