Minor improvements

This commit is contained in:
Joshua Granick
2018-01-12 14:19:52 -08:00
parent e02b1cb3c1
commit 6753d076a4

View File

@@ -81,16 +81,18 @@ for(i = 0; i < dirLen; i++) {
}
if(wait) return
try {
if(exitShell && shell != null) {
if(exitShell && shell != null) {
try {
var isWin = /^win/.test(process.platform);
if(!isWin) {
shell.kill ();
shell.kill('SIGKILL');
} else {
cp.exec('taskkill /PID ' + shell.pid + ' /T /F', function(error, stdout, stderr) {
});
}
}
} catch (e) {}
}
try {
shell = execshell(command)
} catch (e) {
console.error (e);