X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=update_org_ical;h=7c8619c4b6d13145688606ac2a00fad22883d48c;hb=652d77cc8e86d3104f62d5f4f3dc566e712bfecf;hp=eadbcd898139eaef491e620ab8a00e33e52d5af7;hpb=df84d9e3d1aa4266edd09caea980cf505d288ec6;p=bin.git diff --git a/update_org_ical b/update_org_ical index eadbcd8..7c8619c 100755 --- a/update_org_ical +++ b/update_org_ical @@ -3,7 +3,9 @@ HOSTNAME=$(hostname) TMPDIR=~/tmp export TMPDIR -. ~/.ssh/ssh_agent_info_${HOSTNAME} +if [ -e ~/.ssh/ssh_agent_info_${HOSTNAME} ]; then + . ~/.ssh/ssh_agent_info_${HOSTNAME} +fi; LOCKOPTS=-q if [ -n "$PS1" ]; then LOCKOPTS=-f; @@ -15,6 +17,7 @@ else with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical timeout -k1m 1m emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1 fi; yes|with-lock-ex $LOCKOPTS $TMPDIR/update_org_ical timeout -k1m 3m emacs --batch -l ~/.emacs \ + --eval "(setq org-confirm-babel-evaluate nil)" \ --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\")" \