Skip to content

Commit e285016

Browse files
committed
absolute paths
1 parent 1accd07 commit e285016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/cluster/cmx/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func exposePort(node Node, port string) (string, error) {
484484
func copyFileToNode(node Node, src, dst string) error {
485485
scpEndpoint := strings.Replace(node.sshEndpoint, "ssh://", "scp://", 1)
486486

487-
output, err := exec.Command("scp", append(sshArgs(), src, fmt.Sprintf("%s/%s", scpEndpoint, dst))...).CombinedOutput()
487+
output, err := exec.Command("/usr/bin/scp", append(sshArgs(), src, fmt.Sprintf("%s/%s", scpEndpoint, dst))...).CombinedOutput()
488488
if err != nil {
489489
return fmt.Errorf("copy file to node: %v: %s", err, string(output))
490490
}
@@ -494,7 +494,7 @@ func copyFileToNode(node Node, src, dst string) error {
494494
func copyFileFromNode(node Node, src, dst string) error {
495495
scpEndpoint := strings.Replace(node.sshEndpoint, "ssh://", "scp://", 1)
496496

497-
output, err := exec.Command("scp", append(sshArgs(), fmt.Sprintf("%s/%s", scpEndpoint, src), dst)...).CombinedOutput()
497+
output, err := exec.Command("/usr/bin/scp", append(sshArgs(), fmt.Sprintf("%s/%s", scpEndpoint, src), dst)...).CombinedOutput()
498498
if err != nil {
499499
return fmt.Errorf("copy file from node: %v: %s", err, string(output))
500500
}

0 commit comments

Comments
 (0)