Automatic html export of bookmarks
This commit is contained in:
parent
c27b88619a
commit
39233b5e78
@ -72,8 +72,14 @@ 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 && \
|
||||||
|
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
|
git push
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user