Cleanup check only on update command

This commit is contained in:
Ivan Kravets
2017-02-02 13:44:52 +02:00
parent 84d5fbcfe5
commit c03d7bd1c4

View File

@ -59,7 +59,7 @@ def on_platformio_start(ctx, force, caller):
app.set_session_var("caller_id", caller)
telemetry.on_command()
if ctx.args and ctx.args[0] == "upgrade":
if ctx.args and ctx.args[0] == "update":
app.clean_cache()
if not in_silence(ctx):
after_upgrade(ctx)