From 6a35a840341863732e5cb0b6d93250029b1c6ca7 Mon Sep 17 00:00:00 2001 From: "Logan.Price" Date: Fri, 27 Sep 2019 07:38:02 -0500 Subject: [PATCH] fix: update unTar function to actually extract and save the contents of an achieve --- pkg/util/fs_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/fs_util.go b/pkg/util/fs_util.go index 0792e1d66..17695cf39 100644 --- a/pkg/util/fs_util.go +++ b/pkg/util/fs_util.go @@ -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 }