; Minor fix for treesit--install-language-grammar-1 (bug#60465)

* lisp/treesit.el (treesit--install-language-grammar-1): Fix.
This commit is contained in:
Yuan Fu 2023-01-01 16:15:02 -08:00
parent 8994f87ad4
commit 1864b65af6
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -2772,6 +2772,8 @@ function signals an error."
(rx bos (+ anychar) ".o" eos)) (rx bos (+ anychar) ".o" eos))
"-o" ,lib-name)) "-o" ,lib-name))
;; Copy out. ;; Copy out.
(unless (file-exists-p out-dir)
(make-directory out-dir t))
(copy-file lib-name (file-name-as-directory out-dir) t t) (copy-file lib-name (file-name-as-directory out-dir) t t)
(message "Library installed to %s/%s" out-dir lib-name)) (message "Library installed to %s/%s" out-dir lib-name))
(when (file-exists-p workdir) (when (file-exists-p workdir)