mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
fix subdirectory missing in support bundle issue (#308)
This commit is contained in:
committed by
GitHub
parent
2e16424b44
commit
b05eb6bf75
@@ -691,7 +691,8 @@ func tarSupportBundleDir(inputDir, outputFilename string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
nameInArchive, err := filepath.Rel(inputDir, filename)
|
||||
parentDirName := filepath.Dir(inputDir) // this is to have the files inside a subdirectory
|
||||
nameInArchive, err := filepath.Rel(parentDirName, filename)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to create relative file name")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user