We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82cceae commit 03e6da7Copy full SHA for 03e6da7
src/specify_cli/__init__.py
@@ -2868,6 +2868,12 @@ def extension_update(
2868
if extension_dir.exists():
2869
shutil.rmtree(extension_dir)
2870
shutil.copytree(backup_ext_dir, extension_dir)
2871
+ else:
2872
+ # If there was no backup directory, the original state may have
2873
+ # been "no extension directory". In that case, ensure we don't
2874
+ # leave a newly created (and now failed) extension_dir behind.
2875
+ if extension_dir.exists():
2876
+ shutil.rmtree(extension_dir)
2877
2878
# Remove any NEW command files created by failed install
2879
# (files that weren't in the original backup)
0 commit comments