@ejfdelgado/ejflab-back 1.32.14 → 1.32.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/srv/MyShell.mjs +3 -2
package/package.json
CHANGED
package/srv/MyShell.mjs
CHANGED
@@ -4,6 +4,7 @@ import { spawn } from "child_process";
|
|
4
4
|
import { General } from "./common/General.mjs";
|
5
5
|
import { InesperadoException } from "./MyError.mjs";
|
6
6
|
import { IdGen } from "@ejfdelgado/ejflab-common/src/IdGen.js";
|
7
|
+
import { exec } from 'child_process';
|
7
8
|
|
8
9
|
export class ExecFolder {
|
9
10
|
constructor() {
|
@@ -129,11 +130,11 @@ export class MyShell {
|
|
129
130
|
exec(command, {
|
130
131
|
cwd: workingDirectory
|
131
132
|
}, function (err, stdout, stderr) {
|
132
|
-
console.log(stdout);
|
133
|
+
//console.log(stdout);
|
133
134
|
if (err !== null) {
|
134
135
|
reject(err);
|
135
136
|
} else {
|
136
|
-
resolve();
|
137
|
+
resolve({stdout, stderr});
|
137
138
|
}
|
138
139
|
});
|
139
140
|
});
|