Fix #3221: incorrect usage of doom-cli-execute
The function is variadic in as-of-yet published versions of Doom's CLI; this usage snuck into a commit.
This commit is contained in:
parent
a814239ec7
commit
894966b1e2
1 changed files with 7 additions and 8 deletions
|
@ -17,17 +17,16 @@ following shell commands:
|
||||||
(let ((doom-auto-discard force-p))
|
(let ((doom-auto-discard force-p))
|
||||||
(cond
|
(cond
|
||||||
(packages-only-p
|
(packages-only-p
|
||||||
(doom-cli-execute "sync" "-u")
|
(doom-cli-execute "sync" '("-u"))
|
||||||
(print! (success "Finished upgrading Doom Emacs")))
|
(print! (success "Finished upgrading Doom Emacs")))
|
||||||
|
|
||||||
((not (doom-cli-upgrade doom-auto-accept doom-auto-discard))
|
((doom-cli-upgrade doom-auto-accept doom-auto-discard)
|
||||||
(print! "Nothing to do. Doom is up-to-date!"))
|
;; Reload Doom's CLI & libraries, in case there were any upstream changes.
|
||||||
|
;; Major changes will still break, however
|
||||||
(t
|
|
||||||
;; Reload Doom's CLI & libraries, in case there were any
|
|
||||||
;; upstream changes. Major changes will still break, however
|
|
||||||
(print! (info "Reloading Doom Emacs"))
|
(print! (info "Reloading Doom Emacs"))
|
||||||
(doom-cli-execute-after "doom" "upgrade" "-p" (if force-p "-f"))))))
|
(doom-cli-execute-after "doom" '("upgrade" "-p" (if force-p "-f"))))
|
||||||
|
|
||||||
|
((print! "Nothing to do. Doom is up-to-date!")))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue