aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/profile2
-rw-r--r--sh/profile.d/remind.sh2
2 files changed, 2 insertions, 2 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
diff --git a/sh/profile.d/remind.sh b/sh/profile.d/remind.sh
index e3c82e40..eec279af 100644
--- a/sh/profile.d/remind.sh
+++ b/sh/profile.d/remind.sh
@@ -1,5 +1,5 @@
# Show reminders on login
-if command -v remind >/dev/null 2>&1 && [ -f "$HOME"/.reminders ] ; then
+if command -v remind >/dev/null 2>&1 && [ -r "$HOME"/.reminders ] ; then
printf '\n'
remind -q "$HOME"/.reminders | sed 's/^/* /'
fi