aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-02-10 10:54:53 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-02-10 10:54:53 +1300
commit95012843e6dc9197bbcecf77eb655cbed370b88d (patch)
tree64a8b96d2b910a93fc0ff807208cb61a573bf6d3 /sh/profile
parentAlways use -H switch for sudo(8) (diff)
downloaddotfiles-95012843e6dc9197bbcecf77eb655cbed370b88d.tar.gz
dotfiles-95012843e6dc9197bbcecf77eb655cbed370b88d.zip
Use -r test consistently rather than -f
Implicitly check whether file exists and is legible
Diffstat (limited to 'sh/profile')
-rw-r--r--sh/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/profile b/sh/profile
index 7f53ef5d..db003ebe 100644
--- a/sh/profile
+++ b/sh/profile
@@ -7,7 +7,7 @@ export PATH
# Load all supplementary scripts in ~/.profile.d
if [ -d "$HOME"/.profile.d ]; then
for config in "$HOME"/.profile.d/*; do
- [ -f "$config" ] && . "$config"
+ [ -r "$config" ] && . "$config"
done
fi
unset -v config