From 46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 2 Sep 2013 02:06:33 +1200 Subject: Handle empty .bashrc.d/.profile.d dirs --- bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index f9b0e38d..1fc1df2d 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -67,7 +67,7 @@ shopt -s progcomp 2>/dev/null # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]]; then for config in "$HOME"/.bashrc.d/*; do - source "$config" + [[ -f $config ]] && source "$config" done fi unset config -- cgit v1.2.3