Skip to content

Commit d973d21

Browse files
Merge pull request #72 from rundeck-plugins/RUN-2731
RUN-2731Fixes SSH CopyFileFailed for recurisve copy after update to rundeck 5.3.0/5.4.0
2 parents b2d0971 + 692fd89 commit d973d21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/plugin/sshjplugin/model/SSHJScp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ public void execute(SSHClient ssh) throws Exception {
8383
try {
8484

8585
if(useSftp) {
86-
sftp.put(new FileSystemFile(this.localFile), toDir);
86+
sftp.put(new FileSystemFile(file), toDir);
8787
} else {
88-
ssh.newSCPFileTransfer().upload(new FileSystemFile(this.localFile), toDir);
88+
ssh.newSCPFileTransfer().upload(new FileSystemFile(file), toDir);
8989
}
9090
} catch (IOException e) {
9191
e.printStackTrace();

0 commit comments

Comments
 (0)