mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Prevent rename from deleting new config (#7104)
This commit is contained in:
parent
de0e549187
commit
d187340fc4
@ -695,6 +695,7 @@ def command_rename(args, config):
|
||||
os.remove(new_path)
|
||||
return 1
|
||||
|
||||
if CORE.config_path != new_path:
|
||||
os.remove(CORE.config_path)
|
||||
|
||||
print(color(Fore.BOLD_GREEN, "SUCCESS"))
|
||||
|
Loading…
Reference in New Issue
Block a user