contrib: Wait for extraction to finish before continuing.

This commit is contained in:
Quentin Machu 2015-11-24 11:02:13 -05:00
parent 73f2221955
commit 9391417b2d

View File

@ -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
}