From fdc3dc68d03bd91ef56e2a6a8d5dbc771e230118 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Mon, 13 May 2024 12:17:40 +0500 Subject: [PATCH] Remove tmp file when done --- src/hosts.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hosts.zig b/src/hosts.zig index a1a8b31..870e681 100644 --- a/src/hosts.zig +++ b/src/hosts.zig @@ -121,4 +121,6 @@ fn move_tmp_hosts() !void { return err; } }; + + try std.fs.deleteFileAbsoluteZ(try util.getenv("TMP_HOSTS_PATH")); }