Skip to content

Commit

Permalink
contrib: Wait for extraction to finish before continuing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-M committed Nov 24, 2015
1 parent 73f2221 commit 9391417
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/analyze-local-images/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ func save(imageName string) (string, error) {
if err != nil {
return "", errors.New(stderr.String())
}
err = pipe.Close()
if err != nil {
return "", err
}
err = extract.Wait()
if err != nil {
return "", errors.New(stderr.String())
}

return path, nil
}
Expand Down

0 comments on commit 9391417

Please sign in to comment.