contrib: Wait for extraction to finish before continuing.
This commit is contained in:
parent
73f2221955
commit
9391417b2d
@ -142,6 +142,14 @@ func save(imageName string) (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", errors.New(stderr.String())
|
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
|
return path, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user