summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/rb/archive.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/k8splugin/internal/rb/archive.go')
-rw-r--r--src/k8splugin/internal/rb/archive.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/k8splugin/internal/rb/archive.go b/src/k8splugin/internal/rb/archive.go
index c0753134..267c7cd2 100644
--- a/src/k8splugin/internal/rb/archive.go
+++ b/src/k8splugin/internal/rb/archive.go
@@ -115,6 +115,10 @@ func ExtractTarBall(r io.Reader) (string, error) {
}
}
case tar.TypeReg:
+ if target == outDir { // Handle '.' substituted to '' entry
+ continue
+ }
+
err = utils.EnsureDirectory(target)
if err != nil {
return "", pkgerrors.Wrap(err, "Creating Directory")