Skip to content

Commit

Permalink
Capturing the output of a command helps, if you want to do something …
Browse files Browse the repository at this point in the history
…based on that output
  • Loading branch information
YannickJadoul committed Feb 2, 2021
1 parent 2920e75 commit 77d94cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def build(options: BuildOptions) -> None:
# clean up test environment
docker.call(['rm', '-rf', venv_dir])

existing_output_files = docker.call(['ls'], cwd=container_output_dir).split('\n')
existing_output_files = docker.call(['ls'], capture_output=True, cwd=container_output_dir).split('\n')
for repaired_wheel in repaired_wheels:
if repaired_wheel.name in existing_output_files:
message = f'Created wheel ({repaired_wheel}) already exists in output directory.'
Expand Down

0 comments on commit 77d94cc

Please sign in to comment.