From 86639f766d130ab5cda39163f549302722f65549 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sun, 25 Jun 2023 15:38:06 +0200 Subject: [PATCH] Remove temporary script file when it has been used --- internal/app/host_shell.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/host_shell.go b/internal/app/host_shell.go index b1609ab..9b27c07 100644 --- a/internal/app/host_shell.go +++ b/internal/app/host_shell.go @@ -99,6 +99,7 @@ func (a *App) ExecuteShellScript(hostKey, dbKey, collKey, script string) (result result.Status = 0 } + os.Remove(fname) result.Output = string(stdout) return }