From 64f2460bc9a62830666b2e18afc3b723543bbe33 Mon Sep 17 00:00:00 2001
From: Erik Brakkee <erik@brakkee.org>
Date: Tue, 30 Jul 2024 19:04:46 +0200
Subject: [PATCH] Adding rm/del instruction for agents.

---
 pkg/templates/usage.templ | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/templates/usage.templ b/pkg/templates/usage.templ
index 5bc894d..6100bff 100644
--- a/pkg/templates/usage.templ
+++ b/pkg/templates/usage.templ
@@ -15,10 +15,12 @@ templ Usage(secure string, host string, username string) {
            `}curl http{secure}://{host}/static/agent > agent{`
            chmod 755 agent
            `}./agent --id ID ws{secure}://{host}{`
+           rm -f agent
 
            # windows
            `}curl http{secure}://{host}/static/agent.exe > agent.exe{`
            `}agent --id ID ws{secure}://{host}{`
+           del agent.exe
           `}</pre>
                       <p>
                           Above, ID is a unique id for the job, the so-called rendez-cous ID. This should not conflict with IDs