Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 78a753b

Browse files
csphoenix1lepture
authored andcommitted
Avoid recreation of the "client" object if it's already exist (avoid the loose of the defaults parameters for example). (#82)
1 parent ddaca6b commit 78a753b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/scp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function prompt(str, fn) {
174174
function scp(src, dest, defaults) {
175175
console.log();
176176
client.defaults(defaults);
177-
client.scp(src, dest, function(err) {
177+
client.scp(src, dest, client, function(err) {
178178
if (err) {
179179
console.error(err);
180180
process.exit(1);

0 commit comments

Comments
 (0)