diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-07 15:01:10 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-07 15:01:10 +1200 |
commit | 68ae7e846bdd0c116cdbce98d63be93f09e6ec34 (patch) | |
tree | 3f8ba41038e664851960b0eccbc42291642cd0f0 /sh | |
parent | Add newline (diff) | |
download | dotfiles-68ae7e846bdd0c116cdbce98d63be93f09e6ec34.tar.gz dotfiles-68ae7e846bdd0c116cdbce98d63be93f09e6ec34.zip |
Check existence of subfiles
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |