Prevent rename from deleting new config (#7104)

This commit is contained in:
Alex Cortelyou 2024-07-18 15:04:11 -07:00 committed by Jesse Hills
parent de0e549187
commit d187340fc4
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -695,6 +695,7 @@ def command_rename(args, config):
os.remove(new_path) os.remove(new_path)
return 1 return 1
if CORE.config_path != new_path:
os.remove(CORE.config_path) os.remove(CORE.config_path)
print(color(Fore.BOLD_GREEN, "SUCCESS")) print(color(Fore.BOLD_GREEN, "SUCCESS"))