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 --- sh/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/profile b/sh/profile index df1f30d8..bf92b261 100644 --- a/sh/profile +++ b/sh/profile @@ -16,7 +16,7 @@ export PATH # Load all supplementary scripts in ~/.profile.d if [ -d "$HOME"/.profile.d ]; then for config in "$HOME"/.profile.d/*; do - . "$config" + [ -f "$config" ] && . "$config" done fi unset config -- cgit v1.2.3