X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=update_mobile_org;h=e59e6ba1571a632b1f248b531b39ab174fde53db;hb=ea40fa6e1517d2d25cccf0cfc50a5f58ca24614f;hp=75cfc802e62d97b6869124df1ffa738a14bf0292;hpb=dfe71ff181038af4628ae5df4431d9cd0ff21669;p=bin.git diff --git a/update_mobile_org b/update_mobile_org index 75cfc80..e59e6ba 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -7,6 +7,8 @@ LOCKOPTS=-q if [ -n "$PS1" ]; then LOCKOPTS=-f; fi; -mr -d org-mode up; -with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs -f 'org-mobile-push' -f 'org-mobile-pull' -mr -d org-mode commit -m'org mobile automated commit and push'; +mr -d ~/org-mode up; +with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 +yes|with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs \ + --eval '(org-mobile-push)' --eval '(org-mobile-pull)' --eval '(org-save-all-org-buffers)'; +mr -d ~/org-mode commit -m'org mobile automated commit and push';