Fix `delete-biber-cache'

This commit is contained in:
Gerard Vermeulen 2022-09-18 12:35:57 +02:00
parent d6212ff231
commit 7c16bf3ba5

View File

@ -2266,10 +2266,12 @@ valid directories and files. In an [[https://orgmode.org/][Org-mode]] buffer th
;; "How to solve Biber exiting with error code 2 but no error messages?"
(defun biber-delete-cache ()
"Delete the `Biber' cache to get rid of `Biber' exit code 2."
(interactive)
(cl-destructuring-bind (exit-code output)
(shell-command-with-exit-code "rm" "-rf" "$(biber --cache)")
(if (= 0 exit-code) (message "%s") (string-trim output)
(error "%s" (string-trim output))))))
(if (= 0 exit-code)
(message "%s" (string-trim output))
(error "%s" (string-trim output))))))
#+end_src
*** [[https://github.com/tecosaur/engrave-faces#readme][Engrave Faces]]