diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 10:54:53 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 10:54:53 +1300 |
commit | 95012843e6dc9197bbcecf77eb655cbed370b88d (patch) | |
tree | 64a8b96d2b910a93fc0ff807208cb61a573bf6d3 /sh/profile.d | |
parent | Always use -H switch for sudo(8) (diff) | |
download | dotfiles-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.d')
-rw-r--r-- | sh/profile.d/remind.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |