Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 22, 2023
1 parent 8d8c118 commit f135635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pip4a/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit f135635

Please sign in to comment.