@infosupport/huddle-cli 0.0.0-experiment-160.97.1 → 0.0.0-experiment-160.98.1
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/dist/init.js +3 -0
- package/dist/pipe/tools.js +3 -4
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -178,6 +178,9 @@ async function runInit(opts, images) {
|
|
|
178
178
|
dockerArgs.push('-v', `${runtime.socketPath}:/var/run/docker.sock`);
|
|
179
179
|
dockerArgs.push('-v', `${hostTmpSockets}:/tmp/dc-sockets`);
|
|
180
180
|
dockerArgs.push('-v', `${config_1.CONFIG_DIR}:/huddle-home:rw`, '-e', 'HUDDLE_HOME_DIR=/huddle-home');
|
|
181
|
+
// Its host path, so the gateway can refuse mounts that would expose it (the
|
|
182
|
+
// operator token in config.json, the host pipe) to a devcontainer or sandbox.
|
|
183
|
+
dockerArgs.push('-e', `HUDDLE_HOST_HOME_DIR=${config_1.CONFIG_DIR}`);
|
|
181
184
|
if (fwFolder)
|
|
182
185
|
dockerArgs.push('-v', `${fwFolder}:/firewall-rules:rw`);
|
|
183
186
|
if (extFolder)
|
package/dist/pipe/tools.js
CHANGED
|
@@ -67,13 +67,12 @@ function resolveTool(name) {
|
|
|
67
67
|
for (const lookup of lookups) {
|
|
68
68
|
for (const file of candidates(lookup)) {
|
|
69
69
|
const ext = path_1.default.extname(file).toLowerCase();
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// On Windows, skip batch files (they go through cmd.exe) and non-executables.
|
|
71
|
+
if (process.platform === 'win32' && !WIN_RUNNABLE_EXT.has(ext)) {
|
|
72
|
+
if (REFUSED_EXT.has(ext) && isRunnableFile(file))
|
|
72
73
|
refused ??= file;
|
|
73
74
|
continue;
|
|
74
75
|
}
|
|
75
|
-
if (process.platform === 'win32' && !WIN_RUNNABLE_EXT.has(ext))
|
|
76
|
-
continue;
|
|
77
76
|
if (isRunnableFile(file))
|
|
78
77
|
return { path: file };
|
|
79
78
|
}
|
package/package.json
CHANGED