diff --git a/src/pip4a/installer.py b/src/pip4a/installer.py index 82718f7..3f045a5 100644 --- a/src/pip4a/installer.py +++ b/src/pip4a/installer.py @@ -96,7 +96,6 @@ def _install_collection(self: Installer) -> None: err = f"Failed to copy collection to build directory: {exc}" logger.critical(err) - command = ( f"cd {C.COLLECTION_BUILD_DIR} &&" f" {self.bindir / 'ansible-galaxy'} collection build" @@ -120,7 +119,8 @@ def _install_collection(self: Installer) -> None: logger.critical(err) built = [ - f for f in Path(C.COLLECTION_BUILD_DIR).iterdir() + f + for f in Path(C.COLLECTION_BUILD_DIR).iterdir() if f.is_file() and f.name.endswith(".tar.gz") ] if len(built) != 1: