Update shell.js

This commit is contained in:
Namhyeon Go 2023-09-20 14:35:21 +09:00 committed by GitHub
parent 04ec2586a5
commit 30f16cf3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,8 +97,12 @@ var ShellObject = function() {
this.stdout.loadFromFile(this.stdout.path, this.charset);
this.stderr.loadFromFile(this.stderr.path, this.charset);
var stdout = this.stdout.read();
var stderr = this.stderr.read();
var stdout = (function(s) {
return s.length > 3 ? s.substring(3) : '';
})(this.stdout.read());
var stderr = (function(s) {
return s.length > 3 ? s.substring(3) : '';
})(this.stderr.read());
//console.log("[stdout] " + stdout);
//console.log("[stderr] " + stderr);