From: Zachary Vance Date: Thu, 8 Oct 2015 05:08:28 +0000 (-0700) Subject: Print log if financial export goes wrong X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=3e206fc46c2f546b49c1b4ffa0dc5af31bd9c97a;p=za3k.git Print log if financial export goes wrong --- 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