Skip to content

Commit cf0e029

Browse files
committed
revert using scp instead than Upload
1 parent f38b443 commit cf0e029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

upload/upload.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ func ssh(port string, files []string, commandline string, auth Auth, l Logger, S
383383
// don't rename files
384384
fileName = "/tmp/" + filepath.Base(file)
385385
}
386-
err = client.Upload(file, fileName)
387-
debug(l, "Copy "+filepath.Ext(file), err)
386+
err = scp(client, file, fileName)
387+
debug(l, "Copy "+file, err)
388388
if err != nil {
389389
return errors.Wrapf(err, "Copy sketch")
390390
}

0 commit comments

Comments
 (0)