Skip to content

Commit

Permalink
Merge c7e4602 into f0917da
Browse files Browse the repository at this point in the history
  • Loading branch information
dcRUSTy committed Aug 14, 2020
2 parents f0917da + c7e4602 commit 15be357
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ func GenerateReport(r *helpers.DetectionResults, directory string) (path string,
return "", fmt.Errorf("error copying reports: %v", err)
}
} else {
path = filepath.Join(directory, "talisman_reports", "/data")
path = filepath.Join(directory, "talisman_reports")
_ = os.RemoveAll(path)
path = filepath.Join(path, "data")
jsonFilePath = filepath.Join(path, jsonFileName)
}

Expand Down

0 comments on commit 15be357

Please sign in to comment.