Skip to content

Commit f48240c

Browse files
committed
Capturing the output of a command helps, if you want to do something based on that output
1 parent acc8b27 commit f48240c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cibuildwheel/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def build(options: BuildOptions) -> None:
217217
# clean up test environment
218218
docker.call(['rm', '-rf', venv_dir])
219219

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

0 commit comments

Comments
 (0)