Fix plugin unzip call on windows

This commit is contained in:
Douglas De Toni Machado 2021-05-17 07:10:09 -03:00 committed by GitHub
parent 6ae194934d
commit 2408eeceba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,7 +281,7 @@ func unzipFile(f *zipa.File, dest string) error {
defer func() { _ = rc.Close() }()
pathParts := strings.SplitN(f.Name, string(os.PathSeparator), 2)
pathParts := strings.SplitN(f.Name, "/", 2)
p := filepath.Join(dest, pathParts[1])
if f.FileInfo().IsDir() {