From 36f94d330bd07c4970eb92b39fccffade92b5c69 Mon Sep 17 00:00:00 2001 From: d3witt Date: Tue, 27 Aug 2024 14:49:36 +0200 Subject: [PATCH] Fix cp --- archive/tar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/tar.go b/archive/tar.go index 144529d..de05a81 100644 --- a/archive/tar.go +++ b/archive/tar.go @@ -152,7 +152,7 @@ func TarRemote(exec sshexec.Executor, source string) (io.Reader, error) { go func() { defer inPipe.Close() - cmd := sshexec.Command(exec, "tar", "-cf", "-", "-C", source, ".") + cmd := sshexec.Command(exec, "tar", "-cf", "-", source, ".") cmd.Stdout = inPipe if err := cmd.Run(); err != nil { inPipe.CloseWithError(err)