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:
Henrik Lissner 2019-11-10 20:15:25 -05:00
parent af63b0eb7a
commit 8d112fdca8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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))))
;;