Do not use arguments as variable name

This commit is contained in:
Rafael Oleza 2019-05-10 12:41:38 +02:00
parent 0534a38ba4
commit 6eff118c52
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ var path = require('path');
var spawn = require('child_process').spawn;
var atomCommandPath = path.resolve(__dirname, '..', '..', 'atom.exe');
var arguments = process.argv.slice(2);
arguments.unshift('--executed-from', process.cwd());
var args = process.argv.slice(2);
args.unshift('--executed-from', process.cwd());
var options = {detached: true, stdio: 'ignore'};
spawn(atomCommandPath, arguments, options);
spawn(atomCommandPath, args, options);
process.exit(0);