Browse Source

[Fix-4455][common] fix parse shell output (#4456)

data_quality_design
guohaozhang 3 years ago committed by GitHub
parent
commit
fb5501f590
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,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);
}
/**

Loading…
Cancel
Save