mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Prevent void-variable errors on 'doom upgrade'
If Doom is up-to-date, certain Doom package state doesn't get initialized for the 'doom update' that occurs directly after, causing these errors.
This commit is contained in:
@ -13,9 +13,11 @@ following shell commands:
|
||||
bin/doom refresh
|
||||
bin/doom update"
|
||||
:bare t
|
||||
(and (doom-cli-upgrade doom-auto-accept force-p)
|
||||
(doom-cli-packages-update)
|
||||
(doom-cli-reload-package-autoloads 'force-p)))
|
||||
(when (doom-cli-upgrade doom-auto-accept force-p)
|
||||
(doom-initialize)
|
||||
(doom-initialize-packages)
|
||||
(when (doom-cli-packages-update)
|
||||
(doom-cli-reload-package-autoloads 'force-p))))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user