aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc4
-rw-r--r--sh/profile4
2 files changed, 6 insertions, 2 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 733741a1..0d68f01f 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -80,7 +80,9 @@ fi
# Load any supplementary scripts
if [[ -d $HOME/.bashrc.d ]]; then
for config in "$HOME"/.bashrc.d/*.bash; do
- [[ -r $config ]] && source "$config"
+ if [[ -r $config ]]; then
+ source "$config"
+ fi
done
fi
unset -v config
diff --git a/sh/profile b/sh/profile
index 33c5cc11..17a93772 100644
--- a/sh/profile
+++ b/sh/profile
@@ -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