mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Do not set "cwd" for tasks
The task can be inside an asar archive, which is not allowed to be cwd.
This commit is contained in:
@@ -83,7 +83,7 @@ class Task
|
||||
taskPath = taskPath.replace(/\\/g, "\\\\")
|
||||
|
||||
env = _.extend({}, process.env, {taskPath, userAgent: navigator.userAgent})
|
||||
@childProcess = fork '--eval', [bootstrap], {env, cwd: __dirname}
|
||||
@childProcess = fork '--eval', [bootstrap], {env}
|
||||
|
||||
@on "task:log", -> console.log(arguments...)
|
||||
@on "task:warn", -> console.warn(arguments...)
|
||||
|
||||
Reference in New Issue
Block a user