pinokiod 2.15.4 → 2.15.6

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.
@@ -149,6 +149,9 @@ class Bin {
149
149
  }
150
150
  }).filter(x => x)
151
151
 
152
+
153
+ console.log("****** envs", JSON.stringify(envs, null, 2))
154
+
152
155
  // 2. Merge module envs
153
156
  let e = {}
154
157
  for(let env of envs) {
package/kernel/shell.js CHANGED
@@ -189,8 +189,11 @@ class Shell {
189
189
  if (!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(key) && key !== "ProgramFiles(x86)") {
190
190
  delete this.env[key]
191
191
  }
192
- if (/[\r\n]/.test(this.env[key])) {
193
- delete this.env[key]
192
+ let val = this.env[key]
193
+ if (/[\r\n]/.test(val) {
194
+ const replaced = val.replaceAll(/[\r\n]+/g, ' ');
195
+ this.env[key] = replaced
196
+ // delete this.env[key]
194
197
  }
195
198
  }
196
199
 
package/kernel/shells.js CHANGED
@@ -28,7 +28,9 @@ class Shells {
28
28
  */
29
29
  async launch(params, options, ondata) {
30
30
  // iterate through all the envs
31
+ console.log("------- params.env before", JSON.stringify(params.env, null, 2))
31
32
  params.env = this.kernel.bin.envs(params.env)
33
+ console.log("------- params.env after", JSON.stringify(params.env, null, 2))
32
34
 
33
35
  let exec_path = (params.path ? params.path : ".") // use the current path if not specified
34
36
  let cwd = (options && options.cwd ? options.cwd : this.kernel.homedir) // if cwd exists, use it. Otherwise the cwd is pinokio home folder (~/pinokio)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.4",
3
+ "version": "2.15.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {