From c8c7c85909c6de5219c26c12e7f308ca1700b2e0 Mon Sep 17 00:00:00 2001 From: Rodrigo Kassick Date: Mon, 25 Jul 2022 13:18:25 -0300 Subject: [PATCH] fix: dotspacemacs-directory is expected to end with a slash (#15662) --- core/core-dotspacemacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-dotspacemacs.el b/core/core-dotspacemacs.el index da9897ffa..ea2f1879d 100644 --- a/core/core-dotspacemacs.el +++ b/core/core-dotspacemacs.el @@ -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).