From 1ea274ea002540e4e545203e3aa186c9cc7514a2 Mon Sep 17 00:00:00 2001 From: nightwing Date: Mon, 9 Oct 2017 17:30:56 +0400 Subject: [PATCH] workaround for bashrc waiting for user input --- node_modules/vfs-local/localfs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 8aefb4b2..8ad51286 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -141,7 +141,8 @@ module.exports = function setup(fsOptions) { var waitForEnv = null; if (!isWin) { waitForEnv = []; - _execFile(BASH, ["-lc", "printenv -0"], function(error, stdout, stderr) { + // using timeout because bash initialization may open a prompt blocking this call + _execFile(BASH, ["-lc", "printenv -0"], { timeout: 1500 }, function(error, stdout, stderr) { var pending = waitForEnv; waitForEnv = null; if (!error && !stderr && stdout) {