Skip to content

Commit

Permalink
Fix cp
Browse files Browse the repository at this point in the history
  • Loading branch information
d3witt committed Aug 27, 2024
1 parent 60c1c46 commit 36f94d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36f94d3

Please sign in to comment.