mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 14:04:53 +01:00
Prevent rename from deleting new config (#7104)
This commit is contained in:
parent
dd20c5eab0
commit
b32078a5fe
1 changed files with 2 additions and 1 deletions
|
@ -695,7 +695,8 @@ def command_rename(args, config):
|
|||
os.remove(new_path)
|
||||
return 1
|
||||
|
||||
os.remove(CORE.config_path)
|
||||
if CORE.config_path != new_path:
|
||||
os.remove(CORE.config_path)
|
||||
|
||||
print(color(Fore.BOLD_GREEN, "SUCCESS"))
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue