Skip to content

Commit a34c880

Browse files
committed
Fix issue with devspace package add
1 parent 6d33d1e commit a34c880

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/util/tar/tar.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ func ExtractSingleFileTarGz(archivepath, fileToExtract, extractToPath string) er
4040

4141
name := header.Name
4242
if name == fileToExtract {
43-
if header.Typeflag != tar.TypeReg {
44-
return fmt.Errorf("%s is a directory and not a file", fileToExtract)
45-
}
43+
// if header.Typeflag != tar.TypeReg {
44+
// return fmt.Errorf("%s is a directory and not a file", fileToExtract)
45+
// }
4646

4747
outFile, err := os.Create(extractToPath)
4848
if err != nil {

0 commit comments

Comments
 (0)