bdy 1.14.10-dev → 1.14.11-dev
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/distTs/package.json
CHANGED
|
@@ -11,6 +11,7 @@ const child_process_1 = require("child_process");
|
|
|
11
11
|
const node_net_1 = __importDefault(require("node:net"));
|
|
12
12
|
const sftp_1 = __importDefault(require("./sftp"));
|
|
13
13
|
const buddy_1 = __importDefault(require("../api/buddy"));
|
|
14
|
+
const utils_1 = require("../../utils");
|
|
14
15
|
const pipeStreamToChannel = (stream, channel) => {
|
|
15
16
|
channel.once('exit', (code, signal) => {
|
|
16
17
|
logger_1.default.debug(`shell channel exit: ${code}, signal: ${signal}`);
|
|
@@ -162,16 +163,9 @@ class ServerSsh extends events_1.default {
|
|
|
162
163
|
const opts = {};
|
|
163
164
|
if (env)
|
|
164
165
|
opts.env = env;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
logger_1.default.info(opts);
|
|
166
|
+
if ((0, utils_1.isWindows)())
|
|
167
|
+
opts.shell = 'powershell.exe';
|
|
168
168
|
(0, child_process_1.exec)(command, opts, (err, stdout, stderr) => {
|
|
169
|
-
logger_1.default.info('err');
|
|
170
|
-
logger_1.default.info(err);
|
|
171
|
-
logger_1.default.info('stdout');
|
|
172
|
-
logger_1.default.info(stdout);
|
|
173
|
-
logger_1.default.info('stderr');
|
|
174
|
-
logger_1.default.info(stderr);
|
|
175
169
|
if (stream) {
|
|
176
170
|
stream.stderr.write(stderr);
|
|
177
171
|
stream.write(stdout);
|