From 3aff7bc1f78367016ba9493d819a044bae43328c Mon Sep 17 00:00:00 2001 From: Schmenn Date: Wed, 13 Jan 2021 16:55:20 +0100 Subject: [PATCH] Forgot to remove image files afterwards fucking dumbass --- exploits.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exploits.go b/exploits.go index 151a59b..1da6c3b 100644 --- a/exploits.go +++ b/exploits.go @@ -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) } }