]> git.za3k.com Git - za3k.git/commitdiff
Print log if financial export goes wrong
authorZachary Vance <vanceza@gmail.com>
Thu, 8 Oct 2015 05:08:28 +0000 (22:08 -0700)
committerZachary Vance <vanceza@gmail.com>
Thu, 8 Oct 2015 05:08:41 +0000 (22:08 -0700)
cgi-bin/service.status.d/financial export

index 7f84f5652219c8585cb6a29aab7b2cb8526e90df..8131e91d1dc1935b9dc21ebae273b15641554296 100644 (file)
@@ -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