mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 02:23:28 +08:00
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:
parent
b336e66d31
commit
68da536d79
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ var home = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'];
|
||||||
var tmpdir = os.tmpdir();
|
var tmpdir = os.tmpdir();
|
||||||
|
|
||||||
// Windows: Use START as a way to ignore error if nylas.exe isnt running
|
// 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 = [
|
var commands = [
|
||||||
killnylas,
|
killnylas,
|
||||||
|
|
Loading…
Reference in a new issue