fix(cli): omit -D when restarting CLI

The -D short flag was not being omitted during restart, causing an
infinite loop when using `doom sync -D`. Only --debug was added to the
omit list, but -D also triggers debug? and needs to be removed.
This commit is contained in:
Jaeseok Lee 2025-12-31 12:50:17 +09:00 committed by GitHub
parent 1ee1f8f265
commit ae05c26eec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,7 +222,8 @@ SEE ALSO:
(when debug?
(setenv "DEBUG" "1")
(setq init-file-debug t)
(push "--debug" omit))
(push "--debug" omit)
(push "-D" omit))
(when profile
(setenv "DOOMPROFILE" profile)
(push "--profile=" omit))