Skip to content

Commit 8394fef

Browse files
committed
Fix #305
1 parent 212bd63 commit 8394fef

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
@@ -90,9 +90,9 @@ func ExtractSingleFileToStringTarGz(archivepath, fileToExtract string) (string,
9090

9191
name := header.Name
9292
if name == fileToExtract {
93-
if header.Typeflag != tar.TypeReg {
94-
return "", fmt.Errorf("%s is a directory and not a file", fileToExtract)
95-
}
93+
//if header.Typeflag != tar.TypeReg {
94+
// return "", fmt.Errorf("%s is a directory and not a file", fileToExtract)
95+
//}
9696

9797
buf := new(bytes.Buffer)
9898
buf.ReadFrom(tarReader)

0 commit comments

Comments
 (0)