1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-24 19:10:10 +01:00

Make sure only files get sourced

This commit is contained in:
Matthias Kretschmann 2013-10-05 13:31:13 +02:00
parent 4533bdebad
commit bce33d39e0

View File

@ -13,7 +13,7 @@
# ----------------------------------------------------------------------
for file in ~/.{bash_prompt,aliases,private}; do
[ -r "$file" ] && source "$file"
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
unset file