Skip to content

Commit edc4529

Browse files
authored
Merge pull request #25 from nginxinc/areste-windowstarball
Use filepath tools for Windows compatibility
2 parents 1f9733d + 3791e96 commit edc4529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/data_collector/data_collector.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (c *DataCollector) WrapUp(product string) (string, error) {
162162
if err != nil {
163163
return err
164164
}
165-
header.Name = tarballRootDirName + "/" + relativePath
165+
header.Name = filepath.ToSlash(filepath.Join(tarballRootDirName, relativePath))
166166

167167
if err = tw.WriteHeader(header); err != nil {
168168
return err

0 commit comments

Comments
 (0)