fix: update unTar function to actually extract and save the contents of an achieve

This commit is contained in:
Logan.Price 2019-09-27 07:38:02 -05:00 committed by Cole Wippern
parent 229820550e
commit 6a35a84034
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ func unTar(r io.Reader, dest string) ([]string, error) {
if err := ExtractFile(dest, hdr, tr); err != nil {
return nil, err
}
extractedFiles = append(extractedFiles, dest)
extractedFiles = append(extractedFiles, filepath.Join(dest, filepath.Clean(hdr.Name)))
}
return extractedFiles, nil
}