fix: dotspacemacs-directory is expected to end with a slash (#15662)

This commit is contained in:
Rodrigo Kassick 2022-07-25 13:18:25 -03:00 committed by GitHub
parent 861ea131e1
commit c8c7c85909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,8 @@ their configuration.")
(defconst dotspacemacs-directory
(let* ((spacemacs-dir-env (getenv "SPACEMACSDIR"))
(spacemacs-dir (if spacemacs-dir-env
(expand-file-name spacemacs-dir-env)
(expand-file-name ".spacemacs.d" user-home-directory))))
(expand-file-name (concat spacemacs-dir-env "/"))
(expand-file-name ".spacemacs.d/" user-home-directory))))
(when (file-directory-p spacemacs-dir)
spacemacs-dir))
"Directory containing Spacemacs customizations (defaults to nil).