Forgot to remove image files afterwards

fucking dumbass
This commit is contained in:
Schmenn 2021-01-13 16:55:20 +01:00
parent 2a9103af59
commit 3aff7bc1f7

View file

@ -171,6 +171,7 @@ func initCommand(inputFile string, mode string) {
fmt.Println("editing photo.")
exploits.RunVirusImageTask(out)
fmt.Println("completed task.")
os.Remove(out)
} else if strings.HasSuffix(inputFile, "jpeg") {
fmt.Println("transcoding image from jpeg to png")
out := modules.Transcode(inputFile, "png")
@ -178,5 +179,6 @@ func initCommand(inputFile string, mode string) {
fmt.Println("editing photo.")
exploits.RunVirusImageTask(out)
fmt.Println("completed task.")
os.Remove(out)
}
}