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.
- package/kernel/shell.js +13 -8
- 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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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
|
}
|