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

This commit is contained in:
Logan.Price
2019-12-21 15:42:00 -08:00
committed by Cole Wippern
parent 229820550e
commit 6a35a84034
+1 -1
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
}