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.
This commit is contained in:
Carson Ip 2016-07-08 10:57:12 -07:00 committed by Ben Gotow
parent b336e66d31
commit 68da536d79

View file

@ -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,