From 3ea3366534e108f1e6f43ef0ba149d9a0a764c98 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sun, 24 Oct 2021 06:40:32 +0200 Subject: [PATCH] cmd_config_set(): fix --non-interactive --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index d64ce75..8d0fc40 100644 --- a/config.py +++ b/config.py @@ -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()