From 7fce5fe2d7816bd23e05f4accd2cf788d2018ddf Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Tue, 19 Dec 2017 19:33:49 +0100 Subject: [PATCH] typo --- runtests.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/runtests.js b/runtests.js index dee63be6c..60f05186a 100644 --- a/runtests.js +++ b/runtests.js @@ -51,12 +51,9 @@ run('npm', ['install'], () => { const nThen = require('nthen'); nThen((waitFor) => { if (process.platform === 'darwin') { - run('bash', [ - 'ps', '-ef', '|' , - 'grep', '-v', 'grep', '|', - 'grep', 'Google Chrome.app/Contents/MacOS/Google Chrome', '|', - 'awk', '{print $2}', '|', - 'while', 'read', 'x;', 'do', 'kill', '$x;', 'done' + run('bash', ['-c', + 'ps -ef | grep -v grep | grep \'Google Chrome.app/Contents/MacOS/Google Chrome\'' + + ' | awk \'{print $2}\' | while read x; do kill $x; done' ], waitFor()); } }).nThen((waitFor) => {