mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 00:21:23 +00:00
fix: use os.remove instead of shutil.rmtree for symlinks (#1372)
This commit is contained in:
parent
fcbc2eaa47
commit
9fd15f6fdd
@ -201,7 +201,10 @@ class App(AppMeta):
|
|||||||
active_app_path = os.path.join("apps", self.name)
|
active_app_path = os.path.join("apps", self.name)
|
||||||
|
|
||||||
if no_backup:
|
if no_backup:
|
||||||
|
if not os.path.islink(active_app_path):
|
||||||
shutil.rmtree(active_app_path)
|
shutil.rmtree(active_app_path)
|
||||||
|
else:
|
||||||
|
os.remove(active_app_path)
|
||||||
log(f"App deleted from {active_app_path}")
|
log(f"App deleted from {active_app_path}")
|
||||||
else:
|
else:
|
||||||
archived_path = os.path.join("archived", "apps")
|
archived_path = os.path.join("archived", "apps")
|
||||||
|
Loading…
Reference in New Issue
Block a user