mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 05:22:06 +02:00
fix: update unTar function to actually extract and save the contents of an achieve
This commit is contained in:
committed by
Cole Wippern
parent
229820550e
commit
6a35a84034
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user