From 3e206fc46c2f546b49c1b4ffa0dc5af31bd9c97a Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Wed, 7 Oct 2015 22:08:28 -0700 Subject: [PATCH] Print log if financial export goes wrong --- cgi-bin/service.status.d/financial export | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cgi-bin/service.status.d/financial export b/cgi-bin/service.status.d/financial export index 7f84f56..8131e91 100644 --- a/cgi-bin/service.status.d/financial export +++ b/cgi-bin/service.status.d/financial export @@ -1,3 +1,8 @@ FILE=/home/mint/mint-transactions.csv ONE_WEEK=$((7 * 24 * 60 * 60)) -./file-updated? "${FILE}" "${ONE_WEEK}" +if ./file-updated? "${FILE}" "${ONE_WEEK}" +then + : +else + cat /home/mint/cron.log +fi -- 2.47.3