await-shell
Advanced tools
Comparing version 2.1.2 to 2.1.5
@@ -67,3 +67,3 @@ /** | ||
if (global.SHELL_LOG) { | ||
if (thisCmd.trim() !== 'echo' && global.SHELL_LOG) { | ||
console.log(chalk.grey(`> ${thisCmd} ${args.join(' ')}`)); | ||
@@ -78,6 +78,3 @@ } | ||
else { | ||
if ( | ||
thisCmd.trim() !== 'echo' && | ||
global.SHELL_STRICT | ||
) process.exit(1); | ||
if (global.SHELL_STRICT) process.exit(1); | ||
reject(new Error('Exited with code: ' + code)); | ||
@@ -84,0 +81,0 @@ } |
{ | ||
"name": "await-shell", | ||
"version": "2.1.2", | ||
"version": "2.1.5", | ||
"description": "Execute bash commands with non-blocking I/O.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/TeleworkInc/await-shell", |
@@ -20,3 +20,4 @@ const test = require('ava'); | ||
try { | ||
await shell('exit 1'); | ||
global.SHELL_LOG = true; | ||
await shell('echo test', 'exit 1'); | ||
} catch (e) { | ||
@@ -23,0 +24,0 @@ return t.pass(); |
7413
141