Skip to content

Commit

Permalink
Remove directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Aug 22, 2024
1 parent b703de8 commit 73fb04b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/cleanup/service_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package cleanup

import (
"fmt"
"os"
"path/filepath"

"github.com/elastic/elastic-package/internal/agentdeployer"
Expand Down Expand Up @@ -53,9 +54,9 @@ func ServiceLogsIndependentAgents(profile *profile.Profile) (string, error) {
}
for _, f := range folders {
logger.Debugf("Remove folder (path: %s)", f)
// if err := os.RemoveAll(f); err != nil {
// return "", fmt.Errorf("can't remove folder (path: %s): %w", f, err)
// }
if err := os.RemoveAll(f); err != nil {
return "", fmt.Errorf("can't remove folder (path: %s): %w", f, err)
}
}

return folderGlob, nil
Expand Down

0 comments on commit 73fb04b

Please sign in to comment.