From 119d3daffd6671850f2921eef41f3f90756a1366 Mon Sep 17 00:00:00 2001 From: seppzer0 Date: Sat, 2 Mar 2024 01:22:41 +0300 Subject: [PATCH] fix: update condition on bundle directory check --- wrapper/commands/bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrapper/commands/bundle.py b/wrapper/commands/bundle.py index c8f1b1d..0921e2b 100644 --- a/wrapper/commands/bundle.py +++ b/wrapper/commands/bundle.py @@ -111,7 +111,7 @@ def run(self) -> None: # "full" chroot is hardcoded here self._collect_assets(self.base, "full") # clean up - if dcfg.bundle in os.listdir(dcfg.root): + if dcfg.bundle.is_dir(): contents = dcfg.bundle.glob("*") for f in contents: os.remove(f)