]> git.donarmstrong.com Git - bin.git/commitdiff
take out lock in update_mobile_org
authorDon Armstrong <don@donarmstrong.com>
Fri, 27 Dec 2013 03:36:17 +0000 (19:36 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 27 Dec 2013 03:36:17 +0000 (19:36 -0800)
update_mobile_org

index 8c249011b7610da464d0c3445c22bf56df3a77cc..27f18e24873c1dd846cc33c680645d16d106d799 100755 (executable)
@@ -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'