aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-02 02:06:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-02 02:06:33 +1200
commit46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d (patch)
tree963da4b6c8862035daa9d5f35267c81bad6987f7 /sh
parentClearer syntax for prompt (diff)
downloaddotfiles-46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d.tar.gz
dotfiles-46ad312d3e20e2c4dbf3b06c7ac962177a02fd8d.zip
Handle empty .bashrc.d/.profile.d dirs
Diffstat (limited to 'sh')
-rw-r--r--sh/profile2
1 files changed, 1 insertions, 1 deletions
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