fix(cli): don't prompt to rebuild if --rebuild is given
When running `doom sync --rebuild` after emacs upgrade the user is prompted with "Installed packages must be rebuilt. Do so now?", even though doom was explicitly instructed to rebuild. This PR removes this prompt when the `--rebuild` option is provided
This commit is contained in:
parent
cf7098528d
commit
2c17f71965
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ OPTIONS:
|
||||||
(when (and old-host (not (equal old-host (system-name))))
|
(when (and old-host (not (equal old-host (system-name))))
|
||||||
(print! (warn "Your system has changed since last sync"))
|
(print! (warn "Your system has changed since last sync"))
|
||||||
(setq to-rebuild t))
|
(setq to-rebuild t))
|
||||||
(when (and to-rebuild (not (doom-cli-context-suppress-prompts-p context)))
|
(when (and to-rebuild (not rebuild?) (not (doom-cli-context-suppress-prompts-p context)))
|
||||||
(cond (nobuild?
|
(cond (nobuild?
|
||||||
(print! (warn "Packages must be rebuilt, but -B has prevented it. Skipping...")))
|
(print! (warn "Packages must be rebuilt, but -B has prevented it. Skipping...")))
|
||||||
((doom-cli-context-get context 'upgrading)
|
((doom-cli-context-get context 'upgrading)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue