We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e16424 commit b05eb6bCopy full SHA for b05eb6b
cmd/troubleshoot/cli/run.go
@@ -691,7 +691,8 @@ func tarSupportBundleDir(inputDir, outputFilename string) error {
691
return nil
692
}
693
694
- nameInArchive, err := filepath.Rel(inputDir, filename)
+ parentDirName := filepath.Dir(inputDir) // this is to have the files inside a subdirectory
695
+ nameInArchive, err := filepath.Rel(parentDirName, filename)
696
if err != nil {
697
return errors.Wrap(err, "failed to create relative file name")
698
0 commit comments