doom//upgrade: fix void-variable core-file error

This commit is contained in:
Henrik Lissner 2018-05-25 16:15:58 +02:00
parent 5cf899deb4
commit 365201bfcf
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -215,9 +215,9 @@ recompile. Run this whenever you:
"Upgrade Doom to the latest version."
(interactive)
(require 'vc-git)
(let ((core-file (expand-file-name "init.el" doom-core-dir))
(branch (vc-git--symbolic-ref core-file))
(default-directory doom-emacs-dir))
(let* ((core-file (expand-file-name "init.el" doom-core-dir))
(branch (vc-git--symbolic-ref core-file))
(default-directory doom-emacs-dir))
(unless (file-exists-p core-file)
(error "Couldn't find %s, was Doom cloned properly?"
(abbreviate-file-name core-file)))