fix: update unTar function to actually extract and save the contents of an achieve
This commit is contained in:
parent
229820550e
commit
6a35a84034
|
|
@ -190,7 +190,7 @@ func unTar(r io.Reader, dest string) ([]string, error) {
|
||||||
if err := ExtractFile(dest, hdr, tr); err != nil {
|
if err := ExtractFile(dest, hdr, tr); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
extractedFiles = append(extractedFiles, dest)
|
extractedFiles = append(extractedFiles, filepath.Join(dest, filepath.Clean(hdr.Name)))
|
||||||
}
|
}
|
||||||
return extractedFiles, nil
|
return extractedFiles, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue