Fix #1501: fix sh function

`format` is variadic
This commit is contained in:
Henrik Lissner 2019-06-18 22:08:49 +02:00
parent 9c74d9d669
commit 710a18d18a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -41,7 +41,7 @@
(defun sh (cmd &rest args) (defun sh (cmd &rest args)
(ignore-errors (ignore-errors
(string-trim-right (string-trim-right
(shell-command-to-string (format cmd args))))) (shell-command-to-string (apply #'format cmd args)))))
(defun elc-check-dir (dir) (defun elc-check-dir (dir)
(dolist (file (directory-files-recursively dir "\\.elc$")) (dolist (file (directory-files-recursively dir "\\.elc$"))