fix tar.gz update
This commit is contained in:
parent
e0aa24e2b7
commit
a409cdc2bb
|
@ -377,7 +377,8 @@ func targzFileUnpack(tarfile, outdir string) ([]string, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fn := filepath.Join(outdir, path.Base(header.Name))
|
filename := path.Base(header.Name)
|
||||||
|
fn := filepath.Join(outdir, filename)
|
||||||
|
|
||||||
if header.Typeflag == tar.TypeDir {
|
if header.Typeflag == tar.TypeDir {
|
||||||
log.Tracef("%s: ignoring directory", fn)
|
log.Tracef("%s: ignoring directory", fn)
|
||||||
|
@ -401,7 +402,7 @@ func targzFileUnpack(tarfile, outdir string) ([]string, error) {
|
||||||
_ = f.Close()
|
_ = f.Close()
|
||||||
|
|
||||||
log.Tracef("created file %s", fn)
|
log.Tracef("created file %s", fn)
|
||||||
files = append(files, header.Name)
|
files = append(files, filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = gzReader.Close()
|
_ = gzReader.Close()
|
||||||
|
|
Loading…
Reference in New Issue