From: Don Armstrong Date: Thu, 24 Apr 2014 22:19:54 +0000 (-0700) Subject: pipe yes to emacs to avoid dumb questions X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=958abadafd37b29e7a2c11cc07ec0072dafd7292;p=bin.git pipe yes to emacs to avoid dumb questions --- 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\")" \