mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #4249: doom/reload when bin/doom path has spaces
This commit is contained in:
@ -122,7 +122,7 @@ imported into Emacs."
|
|||||||
(when IS-WINDOWS
|
(when IS-WINDOWS
|
||||||
(user-error "Cannot reload envvar file from within Emacs on Windows, run it from cmd.exe"))
|
(user-error "Cannot reload envvar file from within Emacs on Windows, run it from cmd.exe"))
|
||||||
(doom--if-compile
|
(doom--if-compile
|
||||||
(format "%s -ic '%s env%s'"
|
(format "%s -ic '%S env%s'"
|
||||||
(string-trim
|
(string-trim
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
(format "getent passwd %S | cut -d: -f7"
|
(format "getent passwd %S | cut -d: -f7"
|
||||||
@ -137,6 +137,6 @@ imported into Emacs."
|
|||||||
(defun doom/upgrade ()
|
(defun doom/upgrade ()
|
||||||
"Run 'doom upgrade' then prompt to restart Emacs."
|
"Run 'doom upgrade' then prompt to restart Emacs."
|
||||||
(interactive)
|
(interactive)
|
||||||
(doom--if-compile (format "%s -y upgrade" doom-bin)
|
(doom--if-compile (format "%S -y upgrade" doom-bin)
|
||||||
(when (y-or-n-p "You must restart Emacs for the upgrade to take effect.\n\nRestart Emacs?")
|
(when (y-or-n-p "You must restart Emacs for the upgrade to take effect.\n\nRestart Emacs?")
|
||||||
(doom/restart-and-restore))))
|
(doom/restart-and-restore))))
|
||||||
|
Reference in New Issue
Block a user