7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-01 22:00:48 +00:00

Make sure tutor asks for permission before a possibly destructive action

This commit is contained in:
Silvio Tomatis 2019-04-17 15:07:48 +02:00 committed by Régis Behmo
parent 1046b48cc1
commit 08f157698f

View File

@ -77,13 +77,13 @@ def load(root):
load_defaults(config)
if not env.is_up_to_date(root):
click.echo(fmt.alert(
click.confirm(fmt.alert(
"The current environment stored at {} is not up-to-date: it is at "
"v{} while the 'tutor' binary is at v{}. The environment will be "
"upgraded now. Any change you might have made will be overwritten.".format(
env.base_dir(root), env.version(root), __version__
)
))
), abort=True)
should_update_env = True
if should_update_env: