]> git.donarmstrong.com Git - bin.git/commitdiff
pipe yes to emacs to avoid dumb questions
authorDon Armstrong <don@donarmstrong.com>
Thu, 24 Apr 2014 22:19:54 +0000 (15:19 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 24 Apr 2014 22:19:54 +0000 (15:19 -0700)
update_mobile_org
update_org_ical

index 4078d68e2e2f7eb108d3f159914a2ff649006f10..e59e6ba1571a632b1f248b531b39ab174fde53db 100755 (executable)
@@ -9,6 +9,6 @@ if [ -n "$PS1" ]; then
 fi;
 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
-with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs \
+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';
index d3031a9b4deaddcf4befd776fcd20082a6881eee..c60652070526380cfb1a759f7cd37c87d2ebc860 100755 (executable)
@@ -8,7 +8,7 @@ if [ -n "$PS1" ]; then
     LOCKOPTS=-f;
 fi;
 with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
-with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \
+yes|with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical emacs --batch -l ~/.emacs \
     --eval '(setq org-icalendar-combined-description "Don Armstrong’s Calendar (org-mode)")' \
     --eval '(setq org-icalendar-combined-name "Don Armstrong (org-mode)")' \
     --eval "(setq org-icalendar-combined-agenda-file \"$TMPDIR/org.ics\")" \