Skip to content

Commit

Permalink
wait for returncode
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Hill <[email protected]>
  • Loading branch information
diginc committed Sep 19, 2019
1 parent 658df9e commit 17f87be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def build(docker_repo, arch, args):
if args['-v']:
for c in iter(lambda: build_result.stdout.read(1), b''):
sys.stdout.write(c)
build_result.wait()
if build_result.returncode != 0:
print(" ::: Building {} encountered an error".format(dockerfile))
print(build_result.stderr)
Expand Down

0 comments on commit 17f87be

Please sign in to comment.