pinokiod 0.1.8 → 0.1.9
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/package.json +1 -1
- package/server/index.js +4 -2
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1229,8 +1229,10 @@ class Server {
|
|
|
1229
1229
|
let TEMP = path.resolve(homedir, "cache", "TEMP")
|
|
1230
1230
|
await fs.promises.mkdir(TEMP, { recursive: true }).catch((e) => { })
|
|
1231
1231
|
let response = await new Promise((resolve, reject) => {
|
|
1232
|
-
let env =
|
|
1233
|
-
env.
|
|
1232
|
+
let env = { TEMP }
|
|
1233
|
+
if (process.env.path) env.path = process.env.path
|
|
1234
|
+
if (process.env.Path) env.Path = process.env.Path
|
|
1235
|
+
if (process.env.PATH) env.PATH = process.env.PATH
|
|
1234
1236
|
sudo.exec(message, {
|
|
1235
1237
|
name: "Pinokio",
|
|
1236
1238
|
env,
|