summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-09-01 04:49:22 +0000
committerbill-auger <mr.j.spam.me@gmail.com>2018-09-28 23:30:25 -0400
commit7d6673533834d6e8bac5b7f99e0c44657169cb71 (patch)
tree5631fd158cd17ee61787d040e4f3741af80da86c /lib
parent7652409698a535acea66a74ef31c88e200ba4a0c (diff)
fix missing 'announcements/*/you_have_mail' error in memo reminder
Diffstat (limited to 'lib')
-rw-r--r--lib/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/main.sh b/lib/main.sh
index 7bb7041..fccec5b 100644
--- a/lib/main.sh
+++ b/lib/main.sh
@@ -547,7 +547,7 @@ while true; do
# Make sure they have not already been
# told they have a message less than 1
# hour ago
- if [[ -f "announcements/people/${personoslashlower}/seen" ]] && (( ( $( stat -c %Y "announcements/people/${personoslashlower}/you_have_mail" ) + 3600 ) > the_time_now ))
+ if [[ -f "announcements/people/${personoslashlower}/seen" ]] && (( ( $( stat -c %Y "announcements/people/${personoslashlower}/you_have_mail" 2> /dev/null ) + 3600 ) > the_time_now ))
then
yepyep=0
fi