Automatic html export of bookmarks
This commit is contained in:
parent
c27b88619a
commit
39233b5e78
@ -72,9 +72,15 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
|
|||||||
|
|
||||||
if [[ ! -z $(git status -s bookmarks.db) ]]
|
if [[ ! -z $(git status -s bookmarks.db) ]]
|
||||||
then
|
then
|
||||||
git add bookmarks.db
|
rm bookmarks.org;
|
||||||
git commit -m "Changed bookmarks - $(date +%F)"
|
buku -e bookmarks.org && \
|
||||||
git push
|
cat header.org bookmarks.org > index.org && \
|
||||||
|
emacs index.org --batch -f org-html-export-to-html --kill && \
|
||||||
|
git add index.html
|
||||||
|
|
||||||
|
git add bookmarks.db && \
|
||||||
|
git commit -m "Changed bookmarks - $(date +%F)" && \
|
||||||
|
git push
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user