From 780cd6cb2813778f2c694c016f5e7f05e7945c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E5=9D=A4=E5=90=8C=E5=AD=A6?= <1764441920@qq.com> Date: Fri, 31 Dec 2021 17:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8Fcommand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-extra/src/main/java/cn/hutool/extra/ssh/SshjSftp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hutool-extra/src/main/java/cn/hutool/extra/ssh/SshjSftp.java b/hutool-extra/src/main/java/cn/hutool/extra/ssh/SshjSftp.java index 65577a24a..730bc051f 100644 --- a/hutool-extra/src/main/java/cn/hutool/extra/ssh/SshjSftp.java +++ b/hutool-extra/src/main/java/cn/hutool/extra/ssh/SshjSftp.java @@ -225,8 +225,8 @@ public class SshjSftp extends AbstractFtp { Session session = null; try { session = ssh.startSession(); - final Session.Command pwd = session.exec(exec); - InputStream inputStream = pwd.getInputStream(); + final Session.Command command = session.exec(exec); + InputStream inputStream = command.getInputStream(); return IoUtil.read(inputStream, DEFAULT_CHARSET); } catch (Exception e) { throw new FtpException(e);