From 68da536d79325963b0ffd912e5e22d60a93173cc Mon Sep 17 00:00:00 2001 From: Carson Ip Date: Fri, 8 Jul 2016 10:57:12 -0700 Subject: [PATCH] Fix failing clean script (#2554) The clean script fails since productName is "Nylas N1" which contains a space and it appears to pkill 2 patterns. This is causing the script to stop in my linux machine. Now the productName is wrapped with quotes to prevent this from happening. --- script/clean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/clean b/script/clean index 8abef6b63..d9a393a86 100755 --- a/script/clean +++ b/script/clean @@ -12,7 +12,7 @@ var home = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME']; var tmpdir = os.tmpdir(); // Windows: Use START as a way to ignore error if nylas.exe isnt running -var killnylas = process.platform === 'win32' ? 'START taskkill /F /IM ' + productName + '.exe' : 'pkill -9 ' + productName + ' || true'; +var killnylas = process.platform === 'win32' ? 'START taskkill /F /IM "' + productName + '.exe"' : 'pkill -9 "' + productName + '" || true'; var commands = [ killnylas,