update-library.sh 282 B

12345678910
  1. #!/bin/bash
  2. set -euo pipefail
  3. curl http://127.0.0.1:23119/better-bibtex/library\?/1/library.biblatex > library.bibtemp;
  4. if [ "$?" = 0 ]; then
  5. mv library.bibtemp library.bib
  6. echo "Updated library.bib from Zotero"
  7. else
  8. echo "Failed to udpate library.bib from Zotero."
  9. fi