pinokiod 3.19.53 → 3.19.54

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.
Files changed (2) hide show
  1. package/kernel/shell.js +10 -8
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -269,16 +269,18 @@ class Shell {
269
269
  console.log("before transform this.env", this.env)
270
270
  for(let key in this.env) {
271
271
  let val = this.env[key]
272
- // split with ;
273
- let chunks = val.split(";")
274
- let transformed_chunks = []
275
- for(let chunk of chunks) {
276
- if (path.isAbsolute(chunk)) {
277
- let transformed = normalize(chunk)
278
- transformed_chunks.push(transformed)
272
+ if (val && typeof val === "string") {
273
+ // split with ;
274
+ let chunks = val.split(";")
275
+ let transformed_chunks = []
276
+ for(let chunk of chunks) {
277
+ if (path.isAbsolute(chunk)) {
278
+ let transformed = normalize(chunk)
279
+ transformed_chunks.push(transformed)
280
+ }
279
281
  }
282
+ this.env[key] = transformed_chunks.join(";")
280
283
  }
281
- this.env[key] = transformed_chunks.join(";")
282
284
  }
283
285
  console.log("after transform this.env", this.env)
284
286
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.53",
3
+ "version": "3.19.54",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {