From d6a345091770bfc9078ace70c3c65daa805317cb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Mar 2024 10:23:54 -0400 Subject: [PATCH] fix(cli): shell-quote-argument: wrong-number-of-args error shell-quote-argument's second argument was introduced in 29.1. Users on older versions of Emacs will get an error. Amend: d5bad5b43061 --- lisp/cli/packages.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/cli/packages.el b/lisp/cli/packages.el index 7933d692e..527bfb31b 100644 --- a/lisp/cli/packages.el +++ b/lisp/cli/packages.el @@ -810,10 +810,10 @@ However, in batch mode, print to stdout instead of stderr." ;; explanation. (defadvice! doom-cli--straight-throw-error-on-no-branch-a (fn &rest args) :around #'straight--process-log - (letf! ((defun shell-quote-argument (arg &optional posix) - (when (null arg) + (letf! ((defun shell-quote-argument (&rest args) + (unless (car args) (error "Package was not properly cloned due to a connection failure, please try again later")) - (funcall shell-quote-argument arg posix))) + (apply shell-quote-argument args))) (apply fn args))) (defadvice! doom-cli--straight-regurgitate-empty-string-error-a (fn &rest args)