mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
cmd_config_set(): fix --non-interactive
This commit is contained in:
parent
482fa38954
commit
3ea3366534
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ def cmd_config_set(key_vals: list[str], non_interactive: bool = False, noop: boo
|
|||
if merge_configs(config_copy, warn_missing_defaultprofile=False) != config_copy:
|
||||
raise Exception('Config "{key}" = "{value}" failed to evaluate')
|
||||
if not noop:
|
||||
if not click.confirm(f'Do you want to save your changes to {config.runtime["config_file"]}?'):
|
||||
if not non_interactive and not click.confirm(f'Do you want to save your changes to {config.runtime["config_file"]}?'):
|
||||
return
|
||||
config.update(config_copy)
|
||||
config.write()
|
||||
|
|
Loading…
Add table
Reference in a new issue