浏览代码

Add script for pulling latext bib file from Zotero

Ryan C. Thompson 5 年之前
父节点
当前提交
5c8a520770
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      update-library.sh

+ 10 - 0
update-library.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+set -euo pipefail
+
+curl http://127.0.0.1:23119/better-bibtex/library\?/1/library.biblatex > library.bibtemp;
+if [ "$?" = 0 ]; then
+    mv library.bibtemp library.bib
+    echo "Updated library.bib from Zotero"
+else
+    echo "Failed to udpate library.bib from Zotero."
+fi