pinokiod 1.3.88 → 1.3.89
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/api/fs/index.js
CHANGED
|
@@ -130,7 +130,7 @@ class FS {
|
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
// start with the proces.env => merge pinokio global ENVIRONMENT => merge app ENVIRONMENT
|
|
133
|
-
let current_env = await Environment.get2(req.parent.path)
|
|
133
|
+
let current_env = await Environment.get2(req.parent.path, kernel)
|
|
134
134
|
|
|
135
135
|
// if PINOKIO_DRIVE environment variable is specified, use this custom value for the drive path instead of ~/pinokio/drive
|
|
136
136
|
let env_drive_path = current_env.PINOKIO_DRIVE
|
|
@@ -63,7 +63,7 @@ class Local {
|
|
|
63
63
|
}
|
|
64
64
|
*/
|
|
65
65
|
|
|
66
|
-
current_env = await Environment.get2(req.parent.path)
|
|
66
|
+
current_env = await Environment.get2(req.parent.path, kernel)
|
|
67
67
|
|
|
68
68
|
// if the key at current_env.PINOKIO_SHARE_VAR (by default it's 'url') is the variable being set, trigger the share logic
|
|
69
69
|
if (current_env.PINOKIO_SHARE_VAR && current_env.PINOKIO_SHARE_VAR in req.params) {
|