pinokiod 3.19.53 → 3.19.55

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 +13 -8
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -269,16 +269,21 @@ 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 = /^[a-zA-Z]:normalize(chunk)
279
+ transformed = "/" + transformed.replace(":", "")
280
+ transformed_chunks.push(transformed)
281
+ } else {
282
+ transformed_chunks.push(chunk)
283
+ }
279
284
  }
285
+ this.env[key] = transformed_chunks.join(";")
280
286
  }
281
- this.env[key] = transformed_chunks.join(";")
282
287
  }
283
288
  console.log("after transform this.env", this.env)
284
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.53",
3
+ "version": "3.19.55",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {