fix(lib): update doom/upgrade

-y switch was replaced with -!/--force in 6c0b7e1.

Amend: 6c0b7e1530
This commit is contained in:
Henrik Lissner 2022-06-20 23:01:55 +02:00
parent d231755bdf
commit 315960b9a8
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -121,6 +121,6 @@ imported into Emacs."
(defun doom/upgrade () (defun doom/upgrade ()
"Run 'doom upgrade' then prompt to restart Emacs." "Run 'doom upgrade' then prompt to restart Emacs."
(interactive) (interactive)
(doom--if-compile (format "%S -y upgrade" doom-bin) (doom--if-compile (format "%S upgrade --force" doom-bin)
(when (y-or-n-p "You must restart Emacs for the upgrade to take effect.\n\nRestart Emacs?") (when (y-or-n-p "You must restart Emacs for the upgrade to take effect.\n\nRestart Emacs?")
(doom/restart-and-restore)))) (doom/restart-and-restore))))