-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Description
Once installed the audit-tool is a binary and can be run from any directory. If there is a tmp or output directory where it is run they will be wiped out without further notice:
Lines 150 to 155 in 65771ff
| func GenerateTemporaryDirs() { | |
| command := exec.Command("rm", "-rf", "tmp") | |
| _, _ = RunCommand(command) | |
| command = exec.Command("rm", "-rf", "./output/") | |
| _, _ = RunCommand(command) |
A standard way of working with tmp files and directories is to have them created in the OS directory designed for the the purpose, often /tmp on Linux. An example can be found here:
https://gobyexample.com/temporary-files-and-directories
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.