diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 170ac14..0235541 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -10,7 +10,7 @@ var IS_WIN = process.platform === 'win32', - SHELL_PATH = IS_WIN ? 'cmd.exe' : '/bin/sh', + SHELL_PATH = IS_WIN ? process.env.comspec || 'cmd.exe' : '/bin/sh', SHELL_CMD = __dirname + (IS_WIN ? '\\read.bat' : '/read.sh'), ALGORITHM_CIPHER = 'aes-256-cbc', ALGORITHM_HASH = 'sha256',