From 958abadafd37b29e7a2c11cc07ec0072dafd7292 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 24 Apr 2014 15:19:54 -0700 Subject: [PATCH] pipe yes to emacs to avoid dumb questions --- update_mobile_org | 2 +- update_org_ical | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/update_mobile_org b/update_mobile_org index 4078d68..e59e6ba 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -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'; diff --git a/update_org_ical b/update_org_ical index d3031a9..c606520 100755 --- a/update_org_ical +++ b/update_org_ical @@ -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\")" \ -- 2.39.5