diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 23:49:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 23:49:47 +1300 |
commit | 3d9e0ae95400747d070932013e761aa38e5124be (patch) | |
tree | 2fae51cb79146b2f66b9239ce36a087322bd51e8 /sh | |
parent | Remove some unneeded semicolons (diff) | |
download | dotfiles-3d9e0ae95400747d070932013e761aa38e5124be.tar.gz dotfiles-3d9e0ae95400747d070932013e761aa38e5124be.zip |
Use explicit if for condition
Clearer than &&
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,9 @@ export PATH # Load all supplementary scripts in ~/.profile.d if [ -d "$HOME"/.profile.d ]; then for config in "$HOME"/.profile.d/*.sh; do - [ -r "$config" ] && . "$config" + if [ -r "$config" ]; then + . "$config" + fi done fi unset -v config |