bdy 1.15.0-dev → 1.15.2-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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.15.0-dev",
4
+ "version": "1.15.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -161,8 +161,14 @@ class ServerSsh extends events_1.default {
161
161
  localExec(stream, command, env) {
162
162
  const s = process.hrtime();
163
163
  const opts = {};
164
- if (env)
165
- opts.env = env;
164
+ opts.env = process.env || {};
165
+ if (env) {
166
+ Object.keys(env).forEach((key) => {
167
+ if (!opts.env)
168
+ opts.env = {};
169
+ opts.env[key] = env[key];
170
+ });
171
+ }
166
172
  if ((0, utils_1.isWindows)()) {
167
173
  opts.shell = 'powershell.exe';
168
174
  if (!opts.env)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.15.0-dev",
4
+ "version": "1.15.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {