From f8a6a284c2cfffa01ce2e730e00bed71089b5f30 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Thu, 9 Dec 2021 18:09:51 -0600 Subject: [PATCH] Remove rhosts temp file when completed --- src/rhosts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rhosts.go b/src/rhosts.go index a6a8fc9..dc01c20 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -62,6 +62,7 @@ func main() { log.Print("Failed to copy static entries") continue } + defer os.Remove(tmpdir + "rhosts") err = downloadcontent(downloads, tmpdir) if (err != nil){ log.Print("Failed to download entries")