From cdc0205d036c78e8ce1c27e8dd4f71542959f889 Mon Sep 17 00:00:00 2001 From: Bryan McNulty Date: Thu, 17 Apr 2025 02:02:13 -0500 Subject: Remote output file deletion after --- cmd/root.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd/root.go') diff --git a/cmd/root.go b/cmd/root.go index 733bb75..0f8a17a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -59,9 +59,10 @@ var ( exec.Output.RemotePath = util.RandomWindowsTempFile() } exec.Output.Provider = &smb.OutputFileFetcher{ - Client: &smbClient, - Share: `C$`, - File: exec.Output.RemotePath, + Client: &smbClient, + Share: `C$`, + File: exec.Output.RemotePath, + DeleteOutputFile: true, // TEMP } } }, -- cgit v1.2.3