This is an automated email from the ASF dual-hosted git repository.
leonbao pushed a commit to branch 1.3.5-prepare
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/1.3.5-prepare by this push:
new d5743ad [1.3.5-prepare][cherry-pick]#4456 fix parse shell output
(#4605)
d5743ad is described below
commit d5743ad3d7a66029bfdd5550098a1e51b94e77d1
Author: Kirs <[email protected]>
AuthorDate: Fri Jan 29 18:22:10 2021 +0800
[1.3.5-prepare][cherry-pick]#4456 fix parse shell output (#4605)
issue #4455
pr # 4456
---
.../java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java
index 7267447..8d2b768 100644
---
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java
+++
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java
@@ -140,8 +140,8 @@ public class ShellExecutor extends AbstractShell {
String line = "";
while ( (nRead = lines.read(buf, 0, buf.length)) > 0 ) {
line = new String(buf,0,nRead);
+ output.append(line);
}
- output.append(line);
}
/**