mirror of https://github.com/atom/atom.git
Do not use arguments as variable name
This commit is contained in:
parent
0534a38ba4
commit
6eff118c52
|
@ -2,8 +2,8 @@ var path = require('path');
|
||||||
var spawn = require('child_process').spawn;
|
var spawn = require('child_process').spawn;
|
||||||
|
|
||||||
var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
|
var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
|
||||||
var arguments = process.argv.slice(2);
|
var args = process.argv.slice(2);
|
||||||
arguments.unshift('--executed-from', process.cwd());
|
args.unshift('--executed-from', process.cwd());
|
||||||
var options = {detached: true, stdio: 'ignore'};
|
var options = {detached: true, stdio: 'ignore'};
|
||||||
spawn(atomCommandPath, arguments, options);
|
spawn(atomCommandPath, args, options);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Reference in New Issue