Browse Source

[1.3.5-prepare][cherry-pick]#4456 fix parse shell output (#4605)

issue #4455
pr # 4456
Kirs 4 years ago committed by GitHub
parent
commit
d5743ad3d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java

2
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/shell/ShellExecutor.java

@ -140,9 +140,9 @@ 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);
}
}
/**
*

Loading…
Cancel
Save