From: Don Armstrong Date: Fri, 27 Dec 2013 03:36:17 +0000 (-0800) Subject: take out lock in update_mobile_org X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=d85b208c9448fa35a79056e0c0484df7dd3c6985;p=bin.git take out lock in update_mobile_org --- diff --git a/update_mobile_org b/update_mobile_org index 8c24901..27f18e2 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -3,4 +3,8 @@ TMPDIR=~/tmp export TMPDIR . ~/.ssh/ssh_agent_info_$(hostname) -emacs --batch -l ~/.emacs -f 'org-mobile-push' -f 'org-mobile-pull' +LOCKOPTS=-q +if [ -n "$PS1" ]; then + LOCKOPTS=-f; +fi; +with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs -f 'org-mobile-push' -f 'org-mobile-pull'