aem-ext-daemon 0.3.3 → 0.3.5
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.
|
@@ -31,6 +31,7 @@ function getEnhancedEnv() {
|
|
|
31
31
|
const currentPath = process.env.PATH || "/usr/bin:/bin";
|
|
32
32
|
return {
|
|
33
33
|
...process.env,
|
|
34
|
+
HOME: home,
|
|
34
35
|
PATH: `${extraPaths.join(":")}:${currentPath}`,
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -45,6 +46,9 @@ export function exec(command, cwd) {
|
|
|
45
46
|
encoding: "utf-8",
|
|
46
47
|
shell: getUserShell(),
|
|
47
48
|
env: getEnhancedEnv(),
|
|
49
|
+
// Pipe all stdio so interactive prompts don't bleed into the daemon terminal.
|
|
50
|
+
// stdin is /dev/null so commands that prompt for input fail fast instead of hanging.
|
|
51
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
48
52
|
});
|
|
49
53
|
return result;
|
|
50
54
|
}
|