From a0ef4ec1ecd34e277f021dc18bcaad7767c8ab11 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Apr 2024 13:33:17 +0200 Subject: Cleanup auxiliary environment save file --- bbot/agent/agent.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index d6a7d4b..75f7228 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -1577,7 +1577,9 @@ try const bootstrapped_machine_manifest& mm (am.manifest); path ef (tftp_put_dir / "environment"); // Environment upload file. + path efm (ef + '-' + mm.machine.name); // Environment upload saved file. try_rmfile (ef); + try_rmfile (efm); // -- // @@ -1777,7 +1779,7 @@ try // Rename and keep the environment file for debugging (it will be removed // at the end as part of the tftp_put_dir cleanup). // - mvfile (ef, ef + '-' + mm.machine.name); + mvfile (ef, efm); return make_pair (auxiliary_machine_result {move (xp), move (m)}, move (env)); -- cgit v1.1