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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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 = Object.assign({}, process.env)
1233
- env.TEMP = TEMP
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,