From: Don Armstrong <don@donarmstrong.com>
Date: Fri, 16 Feb 2018 00:24:59 +0000 (-0800)
Subject: call update_org_files if we've made any changes
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8e96ca5f3147601cbe8028b761496f049b875f76;p=bin.git

call update_org_files if we've made any changes
---

diff --git a/update_org_caldav b/update_org_caldav
index f91d661..a8b0b0b 100755
--- a/update_org_caldav
+++ b/update_org_caldav
@@ -12,3 +12,6 @@ ${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up;
 ${LOCKIT} ${TIMEOUT} nice -n 19 \
           emacs --batch --no-init -l ~/org-caldav-setup.el \
           >/dev/null 2>&1
+## update org files if we've made any changes
+NO_SAVE_ORG_BUFFERS=1 ${LOCKIT} ${TIMEOUT} nice -n 19 \
+                   update_org_files "update_org_caldav";